summaryrefslogtreecommitdiff
path: root/src/buildtool/crypto/hash_impl_sha512.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/crypto/hash_impl_sha512.cpp')
-rw-r--r--src/buildtool/crypto/hash_impl_sha512.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/buildtool/crypto/hash_impl_sha512.cpp b/src/buildtool/crypto/hash_impl_sha512.cpp
index 41ca792b..524c966c 100644
--- a/src/buildtool/crypto/hash_impl_sha512.cpp
+++ b/src/buildtool/crypto/hash_impl_sha512.cpp
@@ -16,7 +16,6 @@
#include <array>
#include <cstdint>
-#include <utility> // std::move
#include "openssl/sha.h"
@@ -40,17 +39,6 @@ class HashImplSha512 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 SHA512_DIGEST_LENGTH * kCharsPerNumber;
}