Index: src/core/SkValidatingReadBuffer.cpp |
diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp |
index bc4042a2d77fb6fd64c532e2ae38cc57521003e5..a27d42d82dfd26f2600d7a60177c5604f0fd11c6 100644 |
--- a/src/core/SkValidatingReadBuffer.cpp |
+++ b/src/core/SkValidatingReadBuffer.cpp |
@@ -110,19 +110,6 @@ void SkValidatingReadBuffer::readString(SkString* string) { |
} |
} |
-void* SkValidatingReadBuffer::readEncodedString(size_t* length, SkPaint::TextEncoding encoding) { |
- const int32_t encodingType = this->readInt(); |
- this->validate(encodingType == encoding); |
- *length = this->readInt(); |
- const void* ptr = this->skip(SkAlign4(*length)); |
- void* data = nullptr; |
- if (!fError) { |
- data = sk_malloc_throw(*length); |
- memcpy(data, ptr, *length); |
- } |
- return data; |
-} |
- |
void SkValidatingReadBuffer::readPoint(SkPoint* point) { |
point->fX = this->readScalar(); |
point->fY = this->readScalar(); |