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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 706403002: Remove all the now dead Locale code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index d9ac0852757e570a2ae8b02ca071715e4bd7cddb..464937042f359baf6aa2a272ef06da7878de64d9 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -140,7 +140,6 @@
#include "platform/TraceEvent.h"
#include "platform/network/HTTPParsers.h"
#include "platform/scroll/Scrollbar.h"
-#include "platform/text/PlatformLocale.h"
#include "platform/text/SegmentedString.h"
#include "platform/weborigin/SchemeRegistry.h"
#include "public/platform/Platform.h"
@@ -2980,17 +2979,6 @@ void Document::updateHoverActiveState(const HitTestRequest& request, Element* in
}
}
-Locale& Document::getCachedLocale(const AtomicString& locale)
-{
- AtomicString localeKey = locale;
- if (locale.isEmpty() || !RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled())
- return Locale::defaultLocale();
- LocaleIdentifierToLocaleMap::AddResult result = m_localeCache.add(localeKey, nullptr);
- if (result.isNewEntry)
- result.storedValue->value = Locale::create(localeKey);
- return *(result.storedValue->value);
-}
-
Document& Document::ensureTemplateDocument()
{
if (isTemplateDocument())
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698