aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-18 13:42:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-18 13:42:03 -0700
commit7ab04d949bae5e3ad1a5788b0497fc6ea1d86440 (patch)
treeffd158b729b00eaa4bbf9c5029acf381c560876f /tests
parentde49988bc24977f97bb1da8c17ceee5432fcc8e7 (diff)
remove dead guarded code for legacy SkData proc
Diffstat (limited to 'tests')
-rw-r--r--tests/DataRefTest.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp
index 9fcbeb0502..8f06a1892e 100644
--- a/tests/DataRefTest.cpp
+++ b/tests/DataRefTest.cpp
@@ -149,14 +149,6 @@ static void delete_int_proc(const void* ptr, void* context) {
delete[] data;
}
-#ifdef SK_SUPPORT_LEGACY_DATARELEASEPROC_PARAMS
-static void legacy_delete_int_proc(const void* ptr, size_t size, void* context) {
- int* data = (int*)ptr;
- SkASSERT(context == gGlobal);
- delete[] data;
-}
-#endif
-
static void assert_len(skiatest::Reporter* reporter, SkData* ref, size_t len) {
REPORTER_ASSERT(reporter, ref->size() == len);
}
@@ -221,10 +213,6 @@ DEF_TEST(Data, reporter) {
SkAutoTUnref<SkData> r2(SkData::NewWithProc(new int[N], N*sizeof(int),
delete_int_proc, gGlobal));
SkAutoTUnref<SkData> r3(SkData::NewSubset(r1, 7, 6));
-#ifdef SK_SUPPORT_LEGACY_DATARELEASEPROC_PARAMS
- SkAutoTUnref<SkData> r4(SkData::NewWithProc(new int[N], N*sizeof(int),
- legacy_delete_int_proc, gGlobal));
-#endif
assert_len(reporter, r0, 0);
assert_len(reporter, r1, strlen(str));