Index: Source/core/layout/svg/SVGResourcesCache.cpp |
diff --git a/Source/core/layout/svg/SVGResourcesCache.cpp b/Source/core/layout/svg/SVGResourcesCache.cpp |
index b2ad428c7a5755ba1928de2d01a072deb87453e7..b1adc7e6e8ed0ab3df881dc8d5f483ec91cfc5d2 100644 |
--- a/Source/core/layout/svg/SVGResourcesCache.cpp |
+++ b/Source/core/layout/svg/SVGResourcesCache.cpp |
@@ -169,24 +169,4 @@ void SVGResourcesCache::clientDestroyed(LayoutObject* layoutObject) |
cache.removeResourcesFromLayoutObject(layoutObject); |
} |
-void SVGResourcesCache::resourceDestroyed(LayoutSVGResourceContainer* resource) |
-{ |
- ASSERT(resource); |
- SVGResourcesCache& cache = resourcesCache(resource->document()); |
- |
- // The resource itself may have clients, that need to be notified. |
- cache.removeResourcesFromLayoutObject(resource); |
- |
- for (auto& objectResources : cache.m_cache) { |
- objectResources.value->resourceDestroyed(resource); |
- |
- // Mark users of destroyed resources as pending resolution based on the id of the old resource. |
- Element* resourceElement = resource->element(); |
- Element* clientElement = toElement(objectResources.key->node()); |
- SVGDocumentExtensions& extensions = clientElement->document().accessSVGExtensions(); |
- |
- extensions.addPendingResource(resourceElement->fastGetAttribute(HTMLNames::idAttr), clientElement); |
- } |
-} |
- |
} |