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

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

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 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/wtf/text/StringOperators.h ('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 6f20d4a167b3a3a6f36534afc42fc7c5e61e9041..ebe73a61eb84739076f7fda8aaafb9d5ada20d43 100644
--- a/Source/wtf/text/WTFString.h
+++ b/Source/wtf/text/WTFString.h
@@ -82,16 +82,6 @@ enum TrailingZerosTruncatingPolicy {
template<bool isSpecialCharacter(UChar), typename CharacterType>
bool isAllSpecialCharacters(const CharacterType*, size_t);
-// FIXME: Remove this class once all callers are gone.
-class ASCIILiteral {
-public:
- explicit ASCIILiteral(const char* characters) : m_characters(characters) { }
- operator const char*() { return m_characters; }
-
-private:
- const char* m_characters;
-};
-
// You can find documentation about this class in this doc:
// https://docs.google.com/document/d/1kOCUlJdh2WJMJGDf-WoEQhmnjKLaOYRbiHz5TiGJl14/edit?usp=sharing
class WTF_EXPORT String {
@@ -131,7 +121,6 @@ public:
// FIXME: Remove this API once all callers are gone.
enum ConstructFromLiteralTag { ConstructFromLiteral };
String(const char* characters, ConstructFromLiteralTag) : m_impl(StringImpl::create(reinterpret_cast<const LChar*>(characters))) { }
- String(ASCIILiteral literal) : m_impl(StringImpl::create(reinterpret_cast<const LChar*>(static_cast<const char*>(literal)))) { }
#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
// We have to declare the copy constructor and copy assignment operator as well, otherwise
@@ -726,7 +715,6 @@ using WTF::find;
using WTF::isAllSpecialCharacters;
using WTF::isSpaceOrNewline;
using WTF::reverseFind;
-using WTF::ASCIILiteral;
#include "wtf/text/AtomicString.h"
#endif
« no previous file with comments | « Source/wtf/text/StringOperators.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698