aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-27 20:50:23 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-27 20:50:23 +0000
commitb2e9fa529862bd1f7b983a17b3c72acfb3d0367d (patch)
treed35b7fc15ea69e4577e38552d401028168275bd3 /tests
parent92165bc09b221629b42203ebade0b59be98f6c23 (diff)
Clean up the GrTHashTable API.
removeAt() and slowFindIndex() were only used by GrFontCache, and didn't really need to exist: they can be replaced by a simple remove() call. This new code should actually be faster; slowFindIndex() was O(N), and this should be O(lg N). BUG= R=bsalomon@google.com, jvanverth@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/43383006 git-svn-id: http://skia.googlecode.com/svn/trunk@11973 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/HashCacheTest.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/HashCacheTest.cpp b/tests/HashCacheTest.cpp
index ae26f3bd61..bd28c44197 100644
--- a/tests/HashCacheTest.cpp
+++ b/tests/HashCacheTest.cpp
@@ -155,12 +155,6 @@ static void TestHashCache(skiatest::Reporter* reporter) {
HashElement* found = cache.find(0);
REPORTER_ASSERT(reporter, NULL == found);
}
-
- // remove all
- {
- cache.removeAll();
- REPORTER_ASSERT(reporter, 0 == cache.count());
- }
}
////////////////////////////////////////////////////////////////////////////////