Remove dead StyleEngine::removeFontFaceRules. This existed to support the incremental stylesheet updates (AnalyzedStyleUpdate) that sky doesn't support. R=eseidel@google.com Review URL: https://codereview.chromium.org/793933004
diff --git a/sky/engine/core/dom/StyleEngine.cpp b/sky/engine/core/dom/StyleEngine.cpp index ef36e93..0d0719a 100644 --- a/sky/engine/core/dom/StyleEngine.cpp +++ b/sky/engine/core/dom/StyleEngine.cpp
@@ -171,15 +171,6 @@ m_resolver->invalidateMatchedPropertiesCache(); } -void StyleEngine::removeFontFaceRules(const Vector<RawPtr<const StyleRuleFontFace> >& 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<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& text) { RefPtr<CSSStyleSheet> styleSheet;
diff --git a/sky/engine/core/dom/StyleEngine.h b/sky/engine/core/dom/StyleEngine.h index cd8ddfe..37ad7f6 100644 --- a/sky/engine/core/dom/StyleEngine.h +++ b/sky/engine/core/dom/StyleEngine.h
@@ -98,7 +98,6 @@ void clearResolver(); CSSFontSelector* fontSelector() { return m_fontSelector.get(); } - void removeFontFaceRules(const Vector<RawPtr<const StyleRuleFontFace> >&); void clearFontCache(); // updateGenericFontFamilySettings is used from WebSettingsImpl. void updateGenericFontFamilySettings();