Index: src/extensions/experimental/i18n-extension.cc |
diff --git a/src/extensions/experimental/i18n-extension.cc b/src/extensions/experimental/i18n-extension.cc |
index e65fdcc846bbde1eb2629359fad1ed1367333d3c..a721ba5ec52e822123978e41222b045b1b6ddcd7 100644 |
--- a/src/extensions/experimental/i18n-extension.cc |
+++ b/src/extensions/experimental/i18n-extension.cc |
@@ -30,7 +30,6 @@ |
#include <algorithm> |
#include <string> |
-#include "break-iterator.h" |
#include "unicode/locid.h" |
#include "unicode/uloc.h" |
@@ -88,23 +87,6 @@ const char* const I18NExtension::kSource = |
" var displayLocale = this.displayLocale_(optDisplayLocale);" |
" native function NativeJSDisplayName();" |
" return NativeJSDisplayName(this.locale, displayLocale);" |
- "};" |
- "v8Locale.v8BreakIterator = function(locale, type) {" |
- " native function NativeJSBreakIterator();" |
- " var iterator = NativeJSBreakIterator(locale, type);" |
- " iterator.type = type;" |
- " return iterator;" |
- "};" |
- "v8Locale.v8BreakIterator.BreakType = {" |
- " 'unknown': -1," |
- " 'none': 0," |
- " 'number': 100," |
- " 'word': 200," |
- " 'kana': 300," |
- " 'ideo': 400" |
- "};" |
- "v8Locale.prototype.v8CreateBreakIterator = function(type) {" |
- " return new v8Locale.v8BreakIterator(this.locale, type);" |
"};"; |
v8::Handle<v8::FunctionTemplate> I18NExtension::GetNativeFunction( |
@@ -125,8 +107,6 @@ v8::Handle<v8::FunctionTemplate> I18NExtension::GetNativeFunction( |
return v8::FunctionTemplate::New(JSDisplayRegion); |
} else if (name->Equals(v8::String::New("NativeJSDisplayName"))) { |
return v8::FunctionTemplate::New(JSDisplayName); |
- } else if (name->Equals(v8::String::New("NativeJSBreakIterator"))) { |
- return v8::FunctionTemplate::New(BreakIterator::JSBreakIterator); |
} |
return v8::Handle<v8::FunctionTemplate>(); |