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

Unified Diff: bench/ChecksumBench.cpp

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 | « no previous file | gyp/utils.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ChecksumBench.cpp
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp
index bac7bddc81187bcef4613ab43ea0900326239c83..cba9572aa330974529dbc85d67a6805a418c9859 100644
--- a/bench/ChecksumBench.cpp
+++ b/bench/ChecksumBench.cpp
@@ -9,12 +9,10 @@
#include "SkChecksum.h"
#include "SkMD5.h"
#include "SkRandom.h"
-#include "SkSHA1.h"
#include "SkTemplates.h"
enum ChecksumType {
kMD5_ChecksumType,
- kSHA1_ChecksumType,
kMurmur3_ChecksumType,
};
@@ -42,7 +40,6 @@ protected:
const char* onGetName() override {
switch (fType) {
case kMD5_ChecksumType: return "compute_md5";
- case kSHA1_ChecksumType: return "compute_sha1";
case kMurmur3_ChecksumType: return "compute_murmur3";
default: SK_ABORT("Invalid Type"); return "";
@@ -59,14 +56,6 @@ protected:
md5.finish(digest);
}
} break;
- case kSHA1_ChecksumType: {
- for (int i = 0; i < loops; i++) {
- SkSHA1 sha1;
- sha1.update(reinterpret_cast<uint8_t*>(fData), sizeof(fData));
- SkSHA1::Digest digest;
- sha1.finish(digest);
- }
- } break;
case kMurmur3_ChecksumType: {
for (int i = 0; i < loops; i++) {
volatile uint32_t result = SkChecksum::Murmur3(fData, sizeof(fData));
@@ -84,5 +73,4 @@ private:
///////////////////////////////////////////////////////////////////////////////
DEF_BENCH( return new ComputeChecksumBench(kMD5_ChecksumType); )
-DEF_BENCH( return new ComputeChecksumBench(kSHA1_ChecksumType); )
DEF_BENCH( return new ComputeChecksumBench(kMurmur3_ChecksumType); )
« no previous file with comments | « no previous file | gyp/utils.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698