Index: src/pdf/SkPDFMetadata.cpp |
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp |
index 46fe461be5266cae528b82b02ff4534a29b47ce0..42068843bf439b0cf4941db060c028f14b327a58 100644 |
--- a/src/pdf/SkPDFMetadata.cpp |
+++ b/src/pdf/SkPDFMetadata.cpp |
@@ -43,19 +43,6 @@ static const struct { |
}; |
} // namespace |
-#ifdef SK_SUPPORT_LEGACY_DOCUMENT_API |
-void SkPDFMetadata::SetMetadataByKey(const SkString& key, |
- const SkString& value, |
- SkDocument::PDFMetadata* metadata) { |
- for (const auto keyValuePtr : gMetadataKeys) { |
- if (key.equals(keyValuePtr.key)) { |
- metadata->*(keyValuePtr.valuePtr) = value; |
- } |
- } |
-} |
- |
-#endif |
- |
sk_sp<SkPDFObject> SkPDFMetadata::MakeDocumentInformationDict( |
const SkDocument::PDFMetadata& metadata) { |
auto dict = sk_make_sp<SkPDFDict>(); |