Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 69b9d29333f23b69537b0dbf93f18e76ed57de17..462af590d2f02ab592062ffe5f943e2cf31fc812 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -204,23 +204,10 @@ Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
} |
Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, |
- PretenureFlag pretenure, |
- String::AsciiHint ascii_hint) { |
+ PretenureFlag pretenure) { |
CALL_HEAP_FUNCTION( |
isolate(), |
- isolate()->heap()->AllocateStringFromUtf8( |
- string, pretenure, ascii_hint), |
- String); |
-} |
- |
- |
-Handle<String> Factory::NewStringFromLatin1(Vector<const char> string, |
- PretenureFlag pretenure, |
- String::AsciiHint ascii_hint) { |
- CALL_HEAP_FUNCTION( |
- isolate(), |
- isolate()->heap()->AllocateStringFromLatin1( |
- string, pretenure, ascii_hint), |
+ isolate()->heap()->AllocateStringFromUtf8(string, pretenure), |
String); |
} |