diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-23 04:11:07 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-23 04:11:07 -0800 |
commit | b92a919500daf9ec645cd42cd6a8c99883e5198d (patch) | |
tree | 49c8758bb9d1461056beec2b2def79eae285a95f /src | |
parent | 1b5048b288648cd963acd8a4e247a16bc2a52cc6 (diff) | |
download | nodejs-b92a919500daf9ec645cd42cd6a8c99883e5198d.tar.gz nodejs-b92a919500daf9ec645cd42cd6a8c99883e5198d.tar.bz2 nodejs-b92a919500daf9ec645cd42cd6a8c99883e5198d.zip |
Remove unused variables.
Diffstat (limited to 'src')
-rw-r--r-- | src/node_buffer.cc | 3 | ||||
-rw-r--r-- | src/node_script.cc | 1 | ||||
-rw-r--r-- | src/v8_typed_array.cc | 5 |
3 files changed, 1 insertions, 8 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 1aac8bc3b..14aa3ef61 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -171,11 +171,10 @@ Handle<Value> Buffer::New(const Arguments &args) { HandleScope scope; - Buffer *buffer; if (args[0]->IsInt32()) { // var buffer = new Buffer(1024); size_t length = args[0]->Uint32Value(); - buffer = new Buffer(args.This(), length); + new Buffer(args.This(), length); } else { return ThrowException(Exception::TypeError(String::New("Bad argument"))); } diff --git a/src/node_script.cc b/src/node_script.cc index 1f51113c9..c6db76ea5 100644 --- a/src/node_script.cc +++ b/src/node_script.cc @@ -357,7 +357,6 @@ Handle<Value> WrappedScript::EvalMachine(const Arguments& args) { } else if (context_flag == userContext) { // Use the passed in context - Local<Object> contextArg = args[sandbox_index]->ToObject(); WrappedContext *nContext = ObjectWrap::Unwrap<WrappedContext>(sandbox); context = nContext->GetV8Context(); } diff --git a/src/v8_typed_array.cc b/src/v8_typed_array.cc index 9941845fc..18f1e4204 100644 --- a/src/v8_typed_array.cc +++ b/src/v8_typed_array.cc @@ -345,11 +345,6 @@ class TypedArray { v8::Handle<v8::Object> obj = v8::Handle<v8::Object>::Cast(args[0]); if (TypedArray<TBytes, TEAType>::HasInstance(obj)) { // ArrayBufferView. - v8::Handle<v8::Object> src_buffer = v8::Handle<v8::Object>::Cast( - obj->Get(v8::String::New("buffer"))); - v8::Handle<v8::Object> dst_buffer = v8::Handle<v8::Object>::Cast( - args.This()->Get(v8::String::New("buffer"))); - if (args[1]->Int32Value() < 0) return ThrowRangeError("Offset may not be negative."); |