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

Unified Diff: src/pdf/SkPDFTypes.cpp

Issue 1113583002: SkPDF: Remove unused deprecated functions in SkPDFTypes (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
« src/pdf/SkPDFTypes.h ('K') | « src/pdf/SkPDFTypes.h ('k') | no next file » | 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 11f4310944f4df3b1400d5e528522546612298f1..ba5d6e29e7c22a32b8629e0cb3e3936168a37cc6 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -270,6 +270,7 @@ SkPDFUnion SkPDFUnion::Object(SkPDFObject* ptr) {
////////////////////////////////////////////////////////////////////////////////
+#if 0 // Enable if needed.
void SkPDFAtom::emitObject(SkWStream* stream,
const SkPDFObjNumMap& objNumMap,
const SkPDFSubstituteMap& substitutes) {
@@ -279,7 +280,7 @@ void SkPDFAtom::addResources(SkPDFObjNumMap* map,
const SkPDFSubstituteMap& substitutes) const {
fValue.addResources(map, substitutes);
}
-
+#endif // 0
////////////////////////////////////////////////////////////////////////////////
// static
@@ -416,12 +417,6 @@ void SkPDFArray::append(SkPDFUnion&& value) {
SkNEW_PLACEMENT_ARGS(fValues.append(), SkPDFUnion, (value.move()));
}
-SkPDFObject* SkPDFArray::append(SkPDFObject* value) {
- // DEPRECATED
- this->append(SkPDFUnion::Object(SkRef(value)));
- return value;
-}
-
void SkPDFArray::appendInt(int32_t value) {
this->append(SkPDFUnion::Int(value));
}
@@ -512,12 +507,6 @@ void SkPDFDict::insertObject(const SkString& key, SkPDFObject* value) {
this->set(SkPDFUnion::Name(key), SkPDFUnion::Object(value));
}
-// DEPRECATED
-SkPDFObject* SkPDFDict::insert(const char key[], SkPDFObject* value) {
- this->set(SkPDFUnion::Name(key), SkPDFUnion::Object(SkRef(value)));
- return value;
-}
-
void SkPDFDict::insertBool(const char key[], bool value) {
this->set(SkPDFUnion::Name(key), SkPDFUnion::Bool(value));
}
« src/pdf/SkPDFTypes.h ('K') | « src/pdf/SkPDFTypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698