remove SK_SUPPORT_LEGACY_COPYTO_CONFIG
TBR=robertphillips@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/196413009
git-svn-id: http://skia.googlecode.com/svn/trunk@13780 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index c0632e2..d0f7a8e 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -14,8 +14,6 @@
#include "SkPoint.h"
#include "SkRefCnt.h"
-//#define SK_SUPPORT_LEGACY_COPYTO_CONFIG
-
struct SkMask;
struct SkIRect;
struct SkRect;
@@ -617,10 +615,6 @@
*/
bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
-#ifdef SK_SUPPORT_LEGACY_COPYTO_CONFIG
- bool copyTo(SkBitmap* dst, Config c, Allocator* allocator = NULL) const;
- bool canCopyTo(Config newConfig) const;
-#endif
/** Makes a deep copy of this bitmap, respecting the requested colorType,
* and allocating the dst pixels on the cpu.
* Returns false if either there is an error (i.e. the src does not have
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 199f212..10b5775 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -982,16 +982,6 @@
#include "SkCanvas.h"
#include "SkPaint.h"
-#ifdef SK_SUPPORT_LEGACY_COPYTO_CONFIG
-bool SkBitmap::copyTo(SkBitmap* dst, Config c, Allocator* allocator) const {
- return this->copyTo(dst, SkBitmapConfigToColorType(c), allocator);
-}
-
-bool SkBitmap::canCopyTo(Config newConfig) const {
- return this->canCopyTo(SkBitmapConfigToColorType(newConfig));
-}
-#endif
-
bool SkBitmap::canCopyTo(SkColorType dstColorType) const {
if (this->colorType() == kUnknown_SkColorType) {
return false;