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

Unified Diff: src/pdf/SkPDFTypes.cpp

Issue 1071583003: SkPDF: Remove Array's unused set(i) and get(i) (leaving only append()) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/pdf/SkPDFTypes.h ('k') | tests/PDFPrimitivesTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFTypes.cpp
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index 89d6a0bc48dd7674ff3d3ed7fe11bc83db7b8099..cd130cfc520b46f36918b80b016f7da5bf713da1 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -255,14 +255,6 @@ void SkPDFArray::reserve(int length) {
fValue.setReserve(length);
}
-SkPDFObject* SkPDFArray::setAt(int offset, SkPDFObject* value) {
- SkASSERT(offset < fValue.count());
- value->ref();
- fValue[offset]->unref();
- fValue[offset] = value;
- return value;
-}
-
SkPDFObject* SkPDFArray::append(SkPDFObject* value) {
SkASSERT(fValue.count() < kMaxLen);
value->ref();
« no previous file with comments | « src/pdf/SkPDFTypes.h ('k') | tests/PDFPrimitivesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698