Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: src/core/SkReadBuffer.cpp

Issue 1936103002: Remove unused encodedString API on SkWriteBuffer/SkReadBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkReadBuffer.h ('k') | src/core/SkValidatingReadBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkReadBuffer.cpp
diff --git a/src/core/SkReadBuffer.cpp b/src/core/SkReadBuffer.cpp
index 70b0d13a40dfe627946b3b792c686092474db429..b0a371390bd4aa56eb7d2571c63a51499cc664af 100644
--- a/src/core/SkReadBuffer.cpp
+++ b/src/core/SkReadBuffer.cpp
@@ -117,15 +117,6 @@ void SkReadBuffer::readString(SkString* string) {
string->set(strContents, len);
}
-void* SkReadBuffer::readEncodedString(size_t* length, SkPaint::TextEncoding encoding) {
- SkDEBUGCODE(int32_t encodingType = ) fReader.readInt();
- SkASSERT(encodingType == encoding);
- *length = fReader.readInt();
- void* data = sk_malloc_throw(*length);
- memcpy(data, fReader.skip(SkAlign4(*length)), *length);
- return data;
-}
-
void SkReadBuffer::readPoint(SkPoint* point) {
point->fX = fReader.readScalar();
point->fY = fReader.readScalar();
« no previous file with comments | « src/core/SkReadBuffer.h ('k') | src/core/SkValidatingReadBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698