Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/utils/SkSHA1.h

Issue 1705583003: clean up more dead code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkRunnable.h ('k') | src/utils/SkSHA1.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkSHA1.h
diff --git a/src/utils/SkSHA1.h b/src/utils/SkSHA1.h
deleted file mode 100644
index aa0867fed39a5d146636eefe9f6a92bfa892abb3..0000000000000000000000000000000000000000
--- a/src/utils/SkSHA1.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkSHA1_DEFINED
-#define SkSHA1_DEFINED
-
-#include "SkTypes.h"
-#include "SkEndian.h"
-#include "SkStream.h"
-
-//The following macros can be defined to affect the SHA1 code generated.
-//SK_SHA1_CLEAR_DATA causes all intermediate state to be overwritten with 0's.
-//SK_CPU_BENDIAN allows 32 bit <=> 8 bit conversions without copies (if alligned).
-//SK_CPU_FAST_UNALIGNED_ACCESS allows 32 bit <=> 8 bit conversions without copies if SK_CPU_BENDIAN.
-
-class SkSHA1 : public SkWStream {
-public:
- SkSHA1();
-
- /** Processes input, adding it to the digest.
- * Note that this treats the buffer as a series of uint8_t values.
- */
- bool write(const void* buffer, size_t size) override {
- update(reinterpret_cast<const uint8_t*>(buffer), size);
- return true;
- }
-
- size_t bytesWritten() const override { return SkToSizeT(this->byteCount); }
-
- /** Processes input, adding it to the digest. Calling this after finish is undefined. */
- void update(const uint8_t* input, size_t length);
-
- struct Digest {
- uint8_t data[20];
- };
-
- /** Computes and returns the digest. */
- void finish(Digest& digest);
-
-private:
- // number of bytes, modulo 2^64
- uint64_t byteCount;
-
- // state (ABCDE)
- uint32_t state[5];
-
- // input buffer
- uint8_t buffer[64];
-};
-
-#endif
« no previous file with comments | « src/utils/SkRunnable.h ('k') | src/utils/SkSHA1.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698