summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-11-14 05:09:02 +0100
committerAnna Henningsen <anna@addaleax.net>2018-11-16 12:41:08 +0100
commit39a5e7dbb0471313f4f00ee4f1eb51ee0ada61e6 (patch)
treeb4c1049bc4dcf21987ee9cef8c0bd28c7a153e6c /src
parent8cdb92f11c79de45ed1e7686717bbfc6df304a05 (diff)
downloadandroid-node-v8-39a5e7dbb0471313f4f00ee4f1eb51ee0ada61e6.tar.gz
android-node-v8-39a5e7dbb0471313f4f00ee4f1eb51ee0ada61e6.tar.bz2
android-node-v8-39a5e7dbb0471313f4f00ee4f1eb51ee0ada61e6.zip
src: remove unused variables
Currently the following compiler warnings are generated: ../src/node_process.cc:799:16: warning: unused variable 'ary' [-Wunused-variable] Local<Array> ary = Array::New(args.GetIsolate()); ^ 1 warning generated. ../src/node_http2.cc:1294:16: warning: unused variable 'holder' [-Wunused-variable] Local<Array> holder = Array::New(isolate); ^ 1 warning generated. This commit removes these unused variables. PR-URL: https://github.com/nodejs/node/pull/24355 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src')
-rw-r--r--src/node_http2.cc1
-rw-r--r--src/node_process.cc1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 20b634f90f..552903059a 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -1291,7 +1291,6 @@ void Http2Session::HandleHeadersFrame(const nghttp2_frame* frame) {
Local<String> name_str;
Local<String> value_str;
- Local<Array> holder = Array::New(isolate);
// The headers are passed in above as a queue of nghttp2_header structs.
// The following converts that into a JS array with the structure:
// [name1, value1, name2, value2, name3, value3, name3, value4] and so on.
diff --git a/src/node_process.cc b/src/node_process.cc
index 161833ebbd..017d8d0073 100644
--- a/src/node_process.cc
+++ b/src/node_process.cc
@@ -796,7 +796,6 @@ void GetParentProcessId(Local<Name> property,
void GetActiveRequests(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
- Local<Array> ary = Array::New(args.GetIsolate());
std::vector<Local<Value>> request_v;
for (auto w : *env->req_wrap_queue()) {
if (w->persistent().IsEmpty())