SkPDF: Remove unused deprecated functions in SkPDFTypes
depends on:
http://crrev.com/1107923002
http://crrev.com/1103163002
http://crrev.com/1110533002
http://crrev.com/1107913002
http://crrev.com/1106163002
BUG=skia:3585
Review URL: https://codereview.chromium.org/1113583002
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index 11f4310..ba5d6e2 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -270,6 +270,7 @@
////////////////////////////////////////////////////////////////////////////////
+#if 0 // Enable if needed.
void SkPDFAtom::emitObject(SkWStream* stream,
const SkPDFObjNumMap& objNumMap,
const SkPDFSubstituteMap& substitutes) {
@@ -279,7 +280,7 @@
const SkPDFSubstituteMap& substitutes) const {
fValue.addResources(map, substitutes);
}
-
+#endif // 0
////////////////////////////////////////////////////////////////////////////////
// static
@@ -416,12 +417,6 @@
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 @@
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));
}