Index: src/codec/SkBmpCodec.cpp |
diff --git a/src/codec/SkBmpCodec.cpp b/src/codec/SkBmpCodec.cpp |
index 191c2ad8009cbc39e713a2a56452e632a7e84012..c4323e3cd528f5550bc799e147b69a11ebc232ba 100644 |
--- a/src/codec/SkBmpCodec.cpp |
+++ b/src/codec/SkBmpCodec.cpp |
@@ -548,19 +548,6 @@ int32_t SkBmpCodec::getDstRow(int32_t y, int32_t height) const { |
return height - y - 1; |
} |
-/* |
- * Compute the number of colors in the color table |
- */ |
-uint32_t SkBmpCodec::computeNumColors(uint32_t numColors) { |
- // Zero is a default for maxColors |
- // Also set numColors to maxColors when it is too large |
- uint32_t maxColors = 1 << fBitsPerPixel; |
- if (numColors == 0 || numColors >= maxColors) { |
- return maxColors; |
- } |
- return numColors; |
-} |
- |
SkCodec::Result SkBmpCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, |
const SkCodec::Options& options, SkPMColor inputColorPtr[], int* inputColorCount) { |
if (!conversion_possible(dstInfo, this->getInfo())) { |