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

Unified Diff: src/core/SkReadBuffer.cpp

Issue 1937053002: Remove (almost) unused read/writeFunctionPtr API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase 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 b0a371390bd4aa56eb7d2571c63a51499cc664af..ce87d513661dace26852094b9fb6910e01ced112 100644
--- a/src/core/SkReadBuffer.cpp
+++ b/src/core/SkReadBuffer.cpp
@@ -392,21 +392,3 @@ SkFlattenable* SkReadBuffer::readFlattenable(SkFlattenable::Type ft) {
}
return obj.release();
}
-
-/**
- * Needs to follow the same pattern as readFlattenable(), but explicitly skip whatever data
- * has been written.
- */
-void SkReadBuffer::skipFlattenable() {
- if (fFactoryCount > 0) {
- if (0 == fReader.readU32()) {
- return;
- }
- } else {
- if (nullptr == this->readFunctionPtr()) {
- return;
- }
- }
- uint32_t sizeRecorded = fReader.readU32();
- fReader.skip(sizeRecorded);
-}
« 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