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

Unified Diff: Source/wtf/text/StringBuffer.h

Issue 390003003: Shrink canonicalizedTitle a bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to newer origin/master Created 6 years, 4 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/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/StringBuffer.h
diff --git a/Source/wtf/text/StringBuffer.h b/Source/wtf/text/StringBuffer.h
index 952cfb4041633c2daac69c10bde99ee49c6f0122..15ad6ec10566571421afee79caf454035226ac39 100644
--- a/Source/wtf/text/StringBuffer.h
+++ b/Source/wtf/text/StringBuffer.h
@@ -52,19 +52,6 @@ public:
}
void shrink(unsigned newLength);
- void resize(unsigned newLength)
- {
- if (!m_data) {
- CharType* characters;
- m_data = StringImpl::createUninitialized(newLength, characters);
- return;
- }
- if (newLength > m_data->length()) {
- m_data = StringImpl::reallocate(m_data.release(), newLength);
- return;
- }
- shrink(newLength);
- }
unsigned length() const { return m_data ? m_data->length() : 0; }
CharType* characters() { return length() ? const_cast<CharType*>(m_data->getCharacters<CharType>()) : 0; }
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698