Skip to content

Commit 90d481e

Browse files
danbevMylesBorins
authored andcommitted
src: remove unused env variables in node_util
Currently the following compiler warnings are generated: ../src/node_util.cc:59:16: warning: unused variable 'env' [-Wunused-variable] Environment* env = Environment::GetCurrent(args); ^ ../src/node_util.cc:78:16: warning: unused variable 'env' [-Wunused-variable] Environment* env = Environment::GetCurrent(args); ^ 2 warnings generated. This commit removes the two unused variables. PR-URL: #24820 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5f60ed7 commit 90d481e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node_util.cc

-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ static void GetOwnNonIndexProperties(
5656
}
5757

5858
static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
59-
Environment* env = Environment::GetCurrent(args);
6059
// Return undefined if it's not a Promise.
6160
if (!args[0]->IsPromise())
6261
return;
@@ -75,7 +74,6 @@ static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
7574
}
7675

7776
static void GetProxyDetails(const FunctionCallbackInfo<Value>& args) {
78-
Environment* env = Environment::GetCurrent(args);
7977
// Return undefined if it's not a proxy.
8078
if (!args[0]->IsProxy())
8179
return;

0 commit comments

Comments
 (0)