Skip to content

Commit 806570d

Browse files
danbevrvagg
authored andcommitted
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: #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>
1 parent e82f67d commit 806570d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/node_http2.cc

-1
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ void Http2Session::HandleHeadersFrame(const nghttp2_frame* frame) {
12911291
Local<String> name_str;
12921292
Local<String> value_str;
12931293

1294-
Local<Array> holder = Array::New(isolate);
12951294
// The headers are passed in above as a queue of nghttp2_header structs.
12961295
// The following converts that into a JS array with the structure:
12971296
// [name1, value1, name2, value2, name3, value3, name3, value4] and so on.

src/node_process.cc

-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ void GetParentProcessId(Local<Name> property,
796796
void GetActiveRequests(const FunctionCallbackInfo<Value>& args) {
797797
Environment* env = Environment::GetCurrent(args);
798798

799-
Local<Array> ary = Array::New(args.GetIsolate());
800799
std::vector<Local<Value>> request_v;
801800
for (auto w : *env->req_wrap_queue()) {
802801
if (w->persistent().IsEmpty())

0 commit comments

Comments
 (0)