| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index ddd4100fa8209cb9d6075c466229a05eaa869ecd..3f0b2245f4e00e002dd7ab086c57a76ed2c13f7b 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -834,8 +834,6 @@ Handle<ObjectTemplate> Shell::CreateGlobalTemplate() {
|
| global_template->Set(String::New("print"), FunctionTemplate::New(Print));
|
| global_template->Set(String::New("write"), FunctionTemplate::New(Write));
|
| global_template->Set(String::New("read"), FunctionTemplate::New(Read));
|
| - global_template->Set(String::New("readbinary"),
|
| - FunctionTemplate::New(ReadBinary));
|
| global_template->Set(String::New("readbuffer"),
|
| FunctionTemplate::New(ReadBuffer));
|
| global_template->Set(String::New("readline"),
|
| @@ -1056,23 +1054,6 @@ static char* ReadChars(const char* name, int* size_out) {
|
| }
|
|
|
|
|
| -Handle<Value> Shell::ReadBinary(const Arguments& args) {
|
| - String::Utf8Value filename(args[0]);
|
| - int size;
|
| - if (*filename == NULL) {
|
| - return ThrowException(String::New("Error loading file"));
|
| - }
|
| - char* chars = ReadChars(*filename, &size);
|
| - if (chars == NULL) {
|
| - return ThrowException(String::New("Error reading file"));
|
| - }
|
| - // We skip checking the string for UTF8 characters and use it raw as
|
| - // backing store for the external string with 8-bit characters.
|
| - BinaryResource* resource = new BinaryResource(chars, size);
|
| - return String::NewExternal(resource);
|
| -}
|
| -
|
| -
|
| Handle<Value> Shell::ReadBuffer(const Arguments& args) {
|
| String::Utf8Value filename(args[0]);
|
| int length;
|
|
|