[Intl] Remove dead code from runtime/runtime-intl.cc
Cleanup runtime/runtime-intl.cc by removing dead code, namely Runtime_CanonicalizeLanguageTag and Runtime_GetDefaultICULocale. Bug: v8:8439,v8:5751 Change-Id: Id8712b2f3b2ddffc0e289b904f17ae3b09faffae Reviewed-on: https://chromium-review.googlesource.com/c/1329705 Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org> Cr-Commit-Position: refs/heads/master@{#57980}
This commit is contained in:
parent
dda79700be
commit
9f6a854a7b
@ -52,20 +52,6 @@ RUNTIME_FUNCTION(Runtime_FormatListToParts) {
|
||||
isolate, JSListFormat::FormatListToParts(isolate, list_format, list));
|
||||
}
|
||||
|
||||
// ECMA 402 6.2.3
|
||||
RUNTIME_FUNCTION(Runtime_CanonicalizeLanguageTag) {
|
||||
HandleScope scope(isolate);
|
||||
|
||||
DCHECK_EQ(1, args.length());
|
||||
CONVERT_ARG_HANDLE_CHECKED(Object, locale, 0);
|
||||
|
||||
std::string canonicalized;
|
||||
if (!Intl::CanonicalizeLanguageTag(isolate, locale).To(&canonicalized)) {
|
||||
return ReadOnlyRoots(isolate).exception();
|
||||
}
|
||||
return *isolate->factory()->NewStringFromAsciiChecked(canonicalized.c_str());
|
||||
}
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_GetDefaultICULocale) {
|
||||
HandleScope scope(isolate);
|
||||
|
||||
|
@ -198,7 +198,6 @@ namespace internal {
|
||||
|
||||
#ifdef V8_INTL_SUPPORT
|
||||
#define FOR_EACH_INTRINSIC_INTL(F, I) \
|
||||
F(CanonicalizeLanguageTag, 1, 1) \
|
||||
F(FormatList, 2, 1) \
|
||||
F(FormatListToParts, 2, 1) \
|
||||
F(GetDefaultICULocale, 0, 1) \
|
||||
|
Loading…
Reference in New Issue
Block a user