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

Unified Diff: Source/core/inspector/InspectorCSSAgent.cpp

Issue 240013007: Remove some dead code from inspector/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/inspector/ContentSearchUtils.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index 7597a83a1896bf32b7c13fd4f8e85d345ec7fafc..eaf70d55e72002c23d348a57e83be650e27794a4 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -357,32 +357,6 @@ CSSStyleRule* InspectorCSSAgent::asCSSStyleRule(CSSRule* rule)
return toCSSStyleRule(rule);
}
-template <typename CharType, size_t bufferLength>
-static size_t vendorPrefixLowerCase(const CharType* string, size_t stringLength, char (&buffer)[bufferLength])
-{
- static const char lowerCaseOffset = 'a' - 'A';
-
- if (string[0] != '-')
- return 0;
-
- for (size_t i = 0; i < stringLength - 1; i++) {
- CharType c = string[i + 1];
- if (c == '-')
- return i;
- if (i == bufferLength)
- break;
- if (c < 'A' || c > 'z')
- break;
- if (c >= 'a')
- buffer[i] = c;
- else if (c <= 'Z')
- buffer[i] = c + lowerCaseOffset;
- else
- break;
- }
- return 0;
-}
-
InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent)
: InspectorBaseAgent<InspectorCSSAgent>("CSS")
, m_frontend(0)
« no previous file with comments | « Source/core/inspector/ContentSearchUtils.cpp ('k') | Source/core/inspector/InspectorDOMAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698