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

Unified Diff: Source/core/css/parser/BisonCSSParser-in.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/parser/BisonCSSParser.h ('k') | Source/core/dom/DOMImplementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/BisonCSSParser-in.cpp
diff --git a/Source/core/css/parser/BisonCSSParser-in.cpp b/Source/core/css/parser/BisonCSSParser-in.cpp
index 16e0671b28ae3af1bde94c8c1bb2cf16be82b65a..529ed1d979e9cc3312ffd9b88b076c28f61a2eef 100644
--- a/Source/core/css/parser/BisonCSSParser-in.cpp
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp
@@ -435,16 +435,6 @@ CSSParserFunction* BisonCSSParser::createFloatingFunction(const CSSParserString&
return function;
}
-PassOwnPtr<CSSParserFunction> BisonCSSParser::sinkFloatingFunction(CSSParserFunction* function)
-{
- if (function) {
- size_t index = m_floatingFunctions.reverseFind(function);
- ASSERT(index != kNotFound);
- m_floatingFunctions.remove(index);
- }
- return adoptPtr(function);
-}
-
CSSParserValue& BisonCSSParser::sinkFloatingValue(CSSParserValue& value)
{
if (value.unit == CSSParserValue::Function) {
@@ -702,27 +692,6 @@ void BisonCSSParser::reportError(const CSSParserLocation&, CSSParserError)
// FIXME: error reporting temporatily disabled.
}
-bool BisonCSSParser::isLoggingErrors()
-{
- return m_logErrors && !m_ignoreErrors;
-}
-
-void BisonCSSParser::logError(const String& message, const CSSParserLocation& location)
-{
- unsigned lineNumberInStyleSheet;
- unsigned columnNumber = 0;
- if (InspectorInstrumentation::hasFrontends()) {
- ensureLineEndings();
- TextPosition tokenPosition = TextPosition::fromOffsetAndLineEndings(location.offset, *m_lineEndings);
- lineNumberInStyleSheet = tokenPosition.m_line.zeroBasedInt();
- columnNumber = (lineNumberInStyleSheet ? 0 : m_startPosition.m_column.zeroBasedInt()) + tokenPosition.m_column.zeroBasedInt();
- } else {
- lineNumberInStyleSheet = location.lineNumber;
- }
- FrameConsole& console = m_styleSheet->singleOwnerDocument()->frame()->console();
- console.addMessage(ConsoleMessage::create(CSSMessageSource, WarningMessageLevel, message, m_styleSheet->baseURL().string(), lineNumberInStyleSheet + m_startPosition.m_line.zeroBasedInt() + 1, columnNumber + 1));
-}
-
StyleRuleKeyframes* BisonCSSParser::createKeyframesRule(const String& name, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe> > > popKeyframes, bool isPrefixed)
{
OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe> > > keyframes = popKeyframes;
« no previous file with comments | « Source/core/css/parser/BisonCSSParser.h ('k') | Source/core/dom/DOMImplementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698