aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/image/SkImage.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index d3533a9a4a..3817733942 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -253,12 +253,6 @@ SkImage* SkImage::NewFromBitmap(const SkBitmap& bm) {
}
#endif
- // Encoded version?
- if (SkData* encoded = pr->refEncodedData()) {
- SkAutoTUnref<SkData> data(encoded);
- return SkImage::NewFromEncoded(encoded); // todo: add origin/subset/etc?
- }
-
// This will check for immutable (share or copy)
return SkNewImageFromRasterBitmap(bm, false, NULL);
}