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

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

Issue 241363003: Remove some dead code from css/ folder (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/css/CSSParserValues.h ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserValues.cpp
diff --git a/Source/core/css/CSSParserValues.cpp b/Source/core/css/CSSParserValues.cpp
index 4ccb95613b326054b8e72084b27ab19da91548b2..484272de759de25a1b11febfb763ab2920198f03 100644
--- a/Source/core/css/CSSParserValues.cpp
+++ b/Source/core/css/CSSParserValues.cpp
@@ -29,26 +29,6 @@ namespace WebCore {
using namespace WTF;
-AtomicString CSSParserString::atomicSubstring(unsigned position, unsigned length) const
-{
- ASSERT(m_length >= position + length);
-
- if (is8Bit())
- return AtomicString(characters8() + position, length);
- return AtomicString(characters16() + position, length);
-}
-
-void CSSParserString::trimTrailingWhitespace()
-{
- if (is8Bit()) {
- while (m_length > 0 && isHTMLSpace<LChar>(m_data.characters8[m_length - 1]))
- --m_length;
- } else {
- while (m_length > 0 && isHTMLSpace<UChar>(m_data.characters16[m_length - 1]))
- --m_length;
- }
-}
-
CSSParserValueList::~CSSParserValueList()
{
size_t numValues = m_values.size();
@@ -70,11 +50,6 @@ void CSSParserValueList::insertValueAt(unsigned i, const CSSParserValue& v)
m_values.insert(i, v);
}
-void CSSParserValueList::deleteValueAt(unsigned i)
-{
- m_values.remove(i);
-}
-
void CSSParserValueList::stealValues(CSSParserValueList& valueList)
{
for (unsigned i = 0; i < valueList.size(); ++i)
« no previous file with comments | « Source/core/css/CSSParserValues.h ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698