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

Unified Diff: third_party/WebKit/Source/core/css/StyleRule.cpp

Issue 2230813003: Removed unused destroy() methods in CSSValue and StyleRule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « third_party/WebKit/Source/core/css/StyleRule.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StyleRule.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRule.cpp b/third_party/WebKit/Source/core/css/StyleRule.cpp
index d1d8511f5e31b8938fe4fd222507d682edfbf996..ffc73fe80bc83c10d6dd96c826c9646bb7d9eb7e 100644
--- a/third_party/WebKit/Source/core/css/StyleRule.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRule.cpp
@@ -132,46 +132,6 @@ void StyleRuleBase::finalizeGarbageCollectedObject()
ASSERT_NOT_REACHED();
}
-void StyleRuleBase::destroy()
-{
- switch (type()) {
- case Charset:
- delete toStyleRuleCharset(this);
- return;
- case Style:
- delete toStyleRule(this);
- return;
- case Page:
- delete toStyleRulePage(this);
- return;
- case FontFace:
- delete toStyleRuleFontFace(this);
- return;
- case Media:
- delete toStyleRuleMedia(this);
- return;
- case Supports:
- delete toStyleRuleSupports(this);
- return;
- case Import:
- delete toStyleRuleImport(this);
- return;
- case Keyframes:
- delete toStyleRuleKeyframes(this);
- return;
- case Keyframe:
- delete toStyleRuleKeyframe(this);
- return;
- case Namespace:
- delete toStyleRuleNamespace(this);
- return;
- case Viewport:
- delete toStyleRuleViewport(this);
- return;
- }
- ASSERT_NOT_REACHED();
-}
-
StyleRuleBase* StyleRuleBase::copy() const
{
switch (type()) {
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698