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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.cpp

Issue 2149463002: Remove unused StringImpl::findNextLineStart, StringImpl::count and reverseFindLineTerminator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/wtf/text/StringImpl.h ('k') | third_party/WebKit/Source/wtf/text/WTFString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
index e7004b9244bd8d3feaf910f8135488ca4c93a090..2b7ceb20e086a4970e570ab9b3a8fb21670cdb3f 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
@@ -1431,26 +1431,6 @@ size_t StringImpl::findIgnoringASCIICase(StringImpl* matchString, unsigned index
return findIgnoringASCIICaseInner(searchStart, matchString->characters16(), index, searchLength, matchLength);
}
-size_t StringImpl::findNextLineStart(unsigned index)
-{
- if (is8Bit())
- return WTF::findNextLineStart(characters8(), m_length, index);
- return WTF::findNextLineStart(characters16(), m_length, index);
-}
-
-size_t StringImpl::count(LChar c) const
-{
- int count = 0;
- if (is8Bit()) {
- for (size_t i = 0; i < m_length; ++i)
- count += characters8()[i] == c;
- } else {
- for (size_t i = 0; i < m_length; ++i)
- count += characters16()[i] == c;
- }
- return count;
-}
-
size_t StringImpl::reverseFind(UChar c, unsigned index)
{
if (is8Bit())
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.h ('k') | third_party/WebKit/Source/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698