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

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

Issue 21262003: Remove String::adopt(Vector<UChar>) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 7 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 | « Source/wtf/text/StringImpl.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/WTFString.h
diff --git a/Source/wtf/text/WTFString.h b/Source/wtf/text/WTFString.h
index 1ef9f8793a57a234f91c60ee8928f9cdf2391641..f06fe127643d35a7d7b4cca0b8ece3eca9b03ac0 100644
--- a/Source/wtf/text/WTFString.h
+++ b/Source/wtf/text/WTFString.h
@@ -92,8 +92,7 @@ public:
// Construct a string with UTF-16 data.
String(const UChar* characters, unsigned length);
- // Construct a string by copying the contents of a vector. To avoid
- // copying, consider using String::adopt instead.
+ // Construct a string by copying the contents of a vector.
// This method will never create a null string. Vectors with size() == 0
// will return the empty string.
// NOTE: This is different from String(vector.data(), vector.size())
@@ -150,9 +149,6 @@ public:
return String(buffer.release());
}
- template<typename CharType, size_t inlineCapacity>
- static String adopt(Vector<CharType, inlineCapacity>& vector) { return StringImpl::adopt(vector); }
-
bool isNull() const { return !m_impl; }
bool isEmpty() const { return !m_impl || !m_impl->length(); }
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698