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

Unified Diff: Source/wtf/text/TextEncoding.cpp

Issue 335803002: Remove unused text encoding quirks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/TextEncoding.h ('k') | Source/wtf/text/TextEncodingRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextEncoding.cpp
diff --git a/Source/wtf/text/TextEncoding.cpp b/Source/wtf/text/TextEncoding.cpp
index f232e57b2acc6613c5ad807f290a396013ef1504..293afb4ecb6a048f96173b28440353ea1db703d8 100644
--- a/Source/wtf/text/TextEncoding.cpp
+++ b/Source/wtf/text/TextEncoding.cpp
@@ -45,7 +45,6 @@ static const TextEncoding& UTF7Encoding()
TextEncoding::TextEncoding(const char* name)
: m_name(atomicCanonicalTextEncodingName(name))
- , m_backslashAsCurrencySymbol(backslashAsCurrencySymbol())
{
// Aliases are valid, but not "replacement" itself.
if (m_name && isReplacementEncoding(name))
@@ -54,7 +53,6 @@ TextEncoding::TextEncoding(const char* name)
TextEncoding::TextEncoding(const String& name)
: m_name(atomicCanonicalTextEncodingName(name))
- , m_backslashAsCurrencySymbol(backslashAsCurrencySymbol())
{
// Aliases are valid, but not "replacement" itself.
if (m_name && isReplacementEncoding(name))
@@ -134,11 +132,6 @@ bool TextEncoding::usesVisualOrdering() const
return m_name == a;
}
-UChar TextEncoding::backslashAsCurrencySymbol() const
-{
- return shouldShowBackslashAsCurrencySymbolIn(m_name) ? 0x00A5 : '\\';
-}
-
bool TextEncoding::isNonByteBasedEncoding() const
{
if (noExtendedTextEncodingNameUsed()) {
« no previous file with comments | « Source/wtf/text/TextEncoding.h ('k') | Source/wtf/text/TextEncodingRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698