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

Unified Diff: src/pdf/SkPDFMetadata.cpp

Issue 2299653002: SkDocument: turn off SK_SUPPORT_LEGACY_DOCUMENT_API (Closed)
Patch Set: delete all LEGACY_DOCUMENT_API Created 4 years, 3 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/SkPDFMetadata.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>();
« no previous file with comments | « src/pdf/SkPDFMetadata.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698