diff --git a/engine/core/dom/StyleEngine.cpp b/engine/core/dom/StyleEngine.cpp index ef36e93e712..0d0719a11bf 100644 --- a/engine/core/dom/StyleEngine.cpp +++ b/engine/core/dom/StyleEngine.cpp @@ -171,15 +171,6 @@ void StyleEngine::updateGenericFontFamilySettings() m_resolver->invalidateMatchedPropertiesCache(); } -void StyleEngine::removeFontFaceRules(const Vector >& fontFaceRules) -{ - FontFaceCache* cache = m_fontSelector->fontFaceCache(); - for (unsigned i = 0; i < fontFaceRules.size(); ++i) - cache->remove(fontFaceRules[i]); - if (m_resolver) - m_resolver->invalidateMatchedPropertiesCache(); -} - PassRefPtr StyleEngine::createSheet(Element* e, const String& text) { RefPtr styleSheet; diff --git a/engine/core/dom/StyleEngine.h b/engine/core/dom/StyleEngine.h index cd8ddfe03ec..37ad7f6bd5b 100644 --- a/engine/core/dom/StyleEngine.h +++ b/engine/core/dom/StyleEngine.h @@ -98,7 +98,6 @@ public: void clearResolver(); CSSFontSelector* fontSelector() { return m_fontSelector.get(); } - void removeFontFaceRules(const Vector >&); void clearFontCache(); // updateGenericFontFamilySettings is used from WebSettingsImpl. void updateGenericFontFamilySettings();