Index: tests/XfermodeTest.cpp |
diff --git a/tests/XfermodeTest.cpp b/tests/XfermodeTest.cpp |
index 4afa522de7af06aefc7b92f63e1a1e36aab57f6a..34f5233fcf4e5dda849f2a14649277aedaf195ef 100644 |
--- a/tests/XfermodeTest.cpp |
+++ b/tests/XfermodeTest.cpp |
@@ -9,10 +9,6 @@ |
#include "SkXfermode.h" |
#include "Test.h" |
-static SkPMColor bogusXfermodeProc(SkPMColor src, SkPMColor dst) { |
- return 42; |
-} |
- |
#define ILLEGAL_MODE ((SkXfermode::Mode)-1) |
static void test_asMode(skiatest::Reporter* reporter) { |
@@ -36,14 +32,6 @@ static void test_asMode(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); |
} |
} |
- |
- SkXfermode* bogusXfer = SkProcXfermode::Create(bogusXfermodeProc); |
- SkXfermode::Mode reportedMode = ILLEGAL_MODE; |
- REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); |
- REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE); |
- REPORTER_ASSERT(reporter, !SkXfermode::AsMode(bogusXfer, &reportedMode)); |
- REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE); |
- bogusXfer->unref(); |
} |
static void test_IsMode(skiatest::Reporter* reporter) { |