Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 6122dbd56573e26ec12bde528c8e915c4dbc4cad..8734927901d4bcfae4db275376dbaf47067bed25 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -256,26 +256,6 @@ void SkPDFDocument::reset() { |
fFonts.reset(); |
} |
-#ifdef SK_SUPPORT_LEGACY_DOCUMENT_API |
-void SkPDFDocument::setMetadata(const SkDocument::Attribute info[], |
- int infoCount, |
- const SkTime::DateTime* creationDate, |
- const SkTime::DateTime* modifiedDate) { |
- for (int i = 0; i < infoCount; ++i) { |
- const SkDocument::Attribute& kv = info[i]; |
- SkPDFMetadata::SetMetadataByKey(kv.fKey, kv.fValue, &fMetadata); |
- } |
- if (creationDate) { |
- fMetadata.fCreation.fEnabled = true; |
- fMetadata.fCreation.fDateTime = *creationDate; |
- } |
- if (modifiedDate) { |
- fMetadata.fModified.fEnabled = true; |
- fMetadata.fModified.fDateTime = *modifiedDate; |
- } |
-} |
-#endif // SK_SUPPORT_LEGACY_DOCUMENT_API |
- |
static sk_sp<SkData> SkSrgbIcm() { |
// Source: http://www.argyllcms.com/icclibsrc.html |
static const char kProfile[] = |