mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-26 00:20:06 -06:00
cmSystemTools: remove ComputeFileHash method
No longer used.
This commit is contained in:
@@ -51,7 +51,6 @@
|
|||||||
# if defined(_WIN32)
|
# if defined(_WIN32)
|
||||||
# include <cm/memory>
|
# include <cm/memory>
|
||||||
# endif
|
# endif
|
||||||
# include "cmCryptoHash.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CMake_USE_MACH_PARSER)
|
#if defined(CMake_USE_MACH_PARSER)
|
||||||
@@ -1309,13 +1308,6 @@ void cmSystemTools::MoveFileIfDifferent(const std::string& source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CMAKE_BOOTSTRAP
|
#ifndef CMAKE_BOOTSTRAP
|
||||||
std::string cmSystemTools::ComputeFileHash(const std::string& source,
|
|
||||||
cmCryptoHash::Algo algo)
|
|
||||||
{
|
|
||||||
cmCryptoHash hash(algo);
|
|
||||||
return hash.HashFile(source);
|
|
||||||
}
|
|
||||||
|
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
std::string cmSystemTools::ComputeCertificateThumbprint(
|
std::string cmSystemTools::ComputeCertificateThumbprint(
|
||||||
const std::string& source)
|
const std::string& source)
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "cmsys/Status.hxx" // IWYU pragma: export
|
#include "cmsys/Status.hxx" // IWYU pragma: export
|
||||||
#include "cmsys/SystemTools.hxx" // IWYU pragma: export
|
#include "cmsys/SystemTools.hxx" // IWYU pragma: export
|
||||||
|
|
||||||
#include "cmCryptoHash.h"
|
|
||||||
#include "cmDuration.h"
|
#include "cmDuration.h"
|
||||||
#include "cmProcessOutput.h"
|
#include "cmProcessOutput.h"
|
||||||
|
|
||||||
@@ -215,10 +214,6 @@ public:
|
|||||||
const std::string& destination);
|
const std::string& destination);
|
||||||
|
|
||||||
#ifndef CMAKE_BOOTSTRAP
|
#ifndef CMAKE_BOOTSTRAP
|
||||||
//! Compute the hash of a file
|
|
||||||
static std::string ComputeFileHash(const std::string& source,
|
|
||||||
cmCryptoHash::Algo algo);
|
|
||||||
|
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
//! Get the SHA thumbprint for a certificate file
|
//! Get the SHA thumbprint for a certificate file
|
||||||
static std::string ComputeCertificateThumbprint(const std::string& source);
|
static std::string ComputeCertificateThumbprint(const std::string& source);
|
||||||
|
|||||||
Reference in New Issue
Block a user