Index: src/pdf/SkPDFResourceDict.cpp |
diff --git a/src/pdf/SkPDFResourceDict.cpp b/src/pdf/SkPDFResourceDict.cpp |
index 8a0208d64a0013a3c590b27496c0899999e0ed33..40fc1d8dc902342477b5eb181f334b20f19e33fd 100644 |
--- a/src/pdf/SkPDFResourceDict.cpp |
+++ b/src/pdf/SkPDFResourceDict.cpp |
@@ -77,27 +77,6 @@ SkPDFObject* SkPDFResourceDict::insertResourceAsReference( |
return value; |
} |
-void SkPDFResourceDict::getReferencedResources( |
- const SkTSet<SkPDFObject*>& knownResourceObjects, |
- SkTSet<SkPDFObject*>* newResourceObjects, |
- bool recursive) const { |
- // TODO: reserve not correct if we need to recursively explore. |
- newResourceObjects->setReserve(newResourceObjects->count() + |
- fResources.count()); |
- |
- for (int i = 0; i < fResources.count(); i++) { |
- if (!knownResourceObjects.contains(fResources[i]) && |
- !newResourceObjects->contains(fResources[i])) { |
- newResourceObjects->add(fResources[i]); |
- fResources[i]->ref(); |
- if (recursive) { |
- fResources[i]->getResources(knownResourceObjects, |
- newResourceObjects); |
- } |
- } |
- } |
-} |
- |
SkString SkPDFResourceDict::getResourceName( |
SkPDFResourceType type, int key) { |
SkString keyString; |