aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/ChecksumBench.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-02-16 19:06:15 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-16 19:06:15 -0800
commit048494c1e236c4db9d18952de83d2602c1abc7c3 (patch)
tree69997f908e6a8162e4f2d5ad854f10070bc4b6fd /bench/ChecksumBench.cpp
parentf60a8908d2ee5cc2e699dc42c17a6e431c3a49ac (diff)
clean up more dead code
- SkSHA1 is unused - SkRunnable is obsolete now that we have std::function BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1705583003 Review URL: https://codereview.chromium.org/1705583003
Diffstat (limited to 'bench/ChecksumBench.cpp')
-rw-r--r--bench/ChecksumBench.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp
index bac7bddc81..cba9572aa3 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); )