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

Unified Diff: Source/core/css/CSSPropertySourceData.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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 | « Source/core/css/CSSPropertySourceData.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPropertySourceData.cpp
diff --git a/Source/core/css/CSSPropertySourceData.cpp b/Source/core/css/CSSPropertySourceData.cpp
index 008b323a1ea19ab631362848f8b867380f18d7c0..85c262f80011bd3748db84466a5d59de967f16e3 100644
--- a/Source/core/css/CSSPropertySourceData.cpp
+++ b/Source/core/css/CSSPropertySourceData.cpp
@@ -75,41 +75,6 @@ CSSPropertySourceData::CSSPropertySourceData(const CSSPropertySourceData& other)
{
}
-CSSPropertySourceData::CSSPropertySourceData()
- : name("")
- , value("")
- , important(false)
- , disabled(false)
- , parsedOk(false)
- , range(SourceRange(0, 0))
-{
-}
-
-String CSSPropertySourceData::toString() const
-{
- DEFINE_STATIC_LOCAL(String, emptyValue, ("e"));
- if (!name && value == emptyValue)
- return String();
-
- StringBuilder result;
- if (disabled)
- result.appendLiteral("/* ");
- result.append(name);
- result.appendLiteral(": ");
- result.append(value);
- if (important)
- result.appendLiteral(" !important");
- result.append(';');
- if (disabled)
- result.appendLiteral(" */");
- return result.toString();
-}
-
-unsigned CSSPropertySourceData::hash() const
-{
- return StringHash::hash(name) + 3 * StringHash::hash(value) + 7 * important + 13 * parsedOk + 31;
-}
-
void CSSRuleSourceData::trace(Visitor* visitor)
{
visitor->trace(ruleHeaderRange);
« no previous file with comments | « Source/core/css/CSSPropertySourceData.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698