aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
parentde49988bc24977f97bb1da8c17ceee5432fcc8e7 (diff)
remove dead guarded code for legacy SkData proc
Diffstat (limited to 'include')
-rw-r--r--include/core/SkData.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/core/SkData.h b/include/core/SkData.h
index 8a37cdee07..d9dd22de9d 100644
--- a/include/core/SkData.h
+++ b/include/core/SkData.h
@@ -100,13 +100,6 @@ public:
*/
static SkData* NewWithProc(const void* ptr, size_t length, ReleaseProc proc, void* context);
-#ifdef SK_SUPPORT_LEGACY_DATARELEASEPROC_PARAMS
- // This variant is temporary.
- // Its signature is meant to match an older version of the API
- typedef void (*LegacyReleaseProc)(const void* ptr, size_t size, void* ctx);
- static SkData* NewWithProc(const void* ptr, size_t length, LegacyReleaseProc proc, void* ctx);
-#endif
-
/**
* Call this when the data parameter is already const and will outlive the lifetime of the
* SkData. Suitable for with const globals.
@@ -167,19 +160,11 @@ public:
private:
ReleaseProc fReleaseProc;
void* fReleaseProcContext;
-#ifdef SK_SUPPORT_LEGACY_DATARELEASEPROC_PARAMS
- LegacyReleaseProc fLegacyReleaseProc;
-#endif
-
void* fPtr;
size_t fSize;
-#ifdef SK_SUPPORT_LEGACY_DATARELEASEPROC_PARAMS
- SkData(const void* ptr, size_t size, ReleaseProc, void* context, LegacyReleaseProc = NULL);
-#else
SkData(const void* ptr, size_t size, ReleaseProc, void* context);
-#endif
- SkData(size_t size); // inplace new/delete
+ explicit SkData(size_t size); // inplace new/delete
virtual ~SkData();