summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hash_impl_sha256.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-17 09:36:14 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:01:13 +0200
commit30f2b4a215ebd4f9c0c491f41de6e8eb56ed3fdf (patch)
tree31fade6a706444c32dd2ea2d477345f3fd8d9e43 /src/buildtool/crypto/hash_impl_sha256.cpp
parent786e7d214286e8ea7c9fab272164e15c333b830b (diff)
downloadjustbuild-30f2b4a215ebd4f9c0c491f41de6e8eb56ed3fdf.tar.gz
Remove unused code from Hasher
Diffstat (limited to 'src/buildtool/crypto/hash_impl_sha256.cpp')
-rw-r--r--src/buildtool/crypto/hash_impl_sha256.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/buildtool/crypto/hash_impl_sha256.cpp b/src/buildtool/crypto/hash_impl_sha256.cpp
index a677807b..8aa4d04f 100644
--- a/src/buildtool/crypto/hash_impl_sha256.cpp
+++ b/src/buildtool/crypto/hash_impl_sha256.cpp
@@ -16,7 +16,6 @@
#include <array>
#include <cstdint>
-#include <utility> // std::move
#include "openssl/sha.h"
@@ -40,17 +39,6 @@ class HashImplSha256 final : public Hasher::IHashImpl {
return std::nullopt;
}
- auto Compute(std::string const& data) && noexcept -> std::string final {
- if (Update(data)) {
- auto digest = std::move(*this).Finalize();
- if (digest) {
- return *digest;
- }
- }
- FatalError();
- return {};
- }
-
[[nodiscard]] auto GetHashLength() const noexcept -> size_t final {
return SHA256_DIGEST_LENGTH * kCharsPerNumber;
}