summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-08-08 01:15:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-08-08 17:24:00 (GMT)
commita4e4daceafc83f731cf8a885ef4295b4464a4749 (patch)
treee7a66e6491f6dfc48ad1cf16b3c9b4abc5f2cc12
parent0abde043d285ff34c374a49c0211aa4b375e4c9a (diff)
downloadCMake-a4e4daceafc83f731cf8a885ef4295b4464a4749.zip
CMake-a4e4daceafc83f731cf8a885ef4295b4464a4749.tar.gz
CMake-a4e4daceafc83f731cf8a885ef4295b4464a4749.tar.bz2
cmSystemTools: remove `ComputeFileHash` method
No longer used.
-rw-r--r--Source/cmSystemTools.cxx8
-rw-r--r--Source/cmSystemTools.h5
2 files changed, 0 insertions, 13 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 60164c3..74171f4 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -51,7 +51,6 @@
# if defined(_WIN32)
# include <cm/memory>
# endif
-# include "cmCryptoHash.h"
#endif
#if defined(CMake_USE_MACH_PARSER)
@@ -1309,13 +1308,6 @@ void cmSystemTools::MoveFileIfDifferent(const std::string& source,
}
#ifndef CMAKE_BOOTSTRAP
-std::string cmSystemTools::ComputeFileHash(const std::string& source,
- cmCryptoHash::Algo algo)
-{
- cmCryptoHash hash(algo);
- return hash.HashFile(source);
-}
-
# ifdef _WIN32
std::string cmSystemTools::ComputeCertificateThumbprint(
const std::string& source)
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index e8fa047..5c8d981 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -22,7 +22,6 @@
#include "cmsys/Status.hxx" // IWYU pragma: export
#include "cmsys/SystemTools.hxx" // IWYU pragma: export
-#include "cmCryptoHash.h"
#include "cmDuration.h"
#include "cmProcessOutput.h"
@@ -215,10 +214,6 @@ public:
const std::string& destination);
#ifndef CMAKE_BOOTSTRAP
- //! Compute the hash of a file
- static std::string ComputeFileHash(const std::string& source,
- cmCryptoHash::Algo algo);
-
# ifdef _WIN32
//! Get the SHA thumbprint for a certificate file
static std::string ComputeCertificateThumbprint(const std::string& source);