Remove unused SkBitmap::RLEPixels
TBR=reed@google.com
Change-Id: I14a75b7cad89aa7eb4b146a5d269856a4ad5d821
Reviewed-on: https://skia-review.googlesource.com/9646
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index e4675b0..700dbc2 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -751,27 +751,6 @@
bool allocPixelRef(SkBitmap*, SkColorTable*) override;
};
- class RLEPixels {
- public:
- RLEPixels(int width, int height);
- virtual ~RLEPixels();
-
- uint8_t* packedAtY(int y) const {
- SkASSERT((unsigned)y < (unsigned)fHeight);
- return fYPtrs[y];
- }
-
- // called by subclasses during creation
- void setPackedAtY(int y, uint8_t* addr) {
- SkASSERT((unsigned)y < (unsigned)fHeight);
- fYPtrs[y] = addr;
- }
-
- private:
- uint8_t** fYPtrs;
- int fHeight;
- };
-
SK_TO_STRING_NONVIRT()
private:
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index bcc57a1..4a55e1a 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -1053,17 +1053,6 @@
///////////////////////////////////////////////////////////////////////////////
-SkBitmap::RLEPixels::RLEPixels(int width, int height) {
- fHeight = height;
- fYPtrs = (uint8_t**)sk_calloc_throw(height * sizeof(uint8_t*));
-}
-
-SkBitmap::RLEPixels::~RLEPixels() {
- sk_free(fYPtrs);
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
#ifdef SK_DEBUG
void SkBitmap::validate() const {
fInfo.validate();