summaryrefslogtreecommitdiff
path: root/source/core/slang-digest.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-digest.h')
-rw-r--r--source/core/slang-digest.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/source/core/slang-digest.h b/source/core/slang-digest.h
deleted file mode 100644
index 47c0cd8f7..000000000
--- a/source/core/slang-digest.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-#include "slang-md5.h"
-#include "../../slang.h"
-
-namespace Slang
-{
- using slang::Digest;
-
- // Wrapper struct that holds objects necessary for hashing.
- struct DigestBuilder
- {
- public:
- DigestBuilder()
- {
- hashGen.init(&context);
- }
-
- template <typename T>
- void addToDigest(T item)
- {
- hashGen.update(&context, item);
- }
-
- Digest finalize()
- {
- Digest hash;
- hashGen.finalize(&context, &hash);
- return hash;
- }
-
- private:
- MD5HashGen hashGen;
- MD5Context context;
- };
-}