Skip to content

Commit 87c864c

Browse files
danbevBridgeAR
authored andcommitted
src: remove unused variables in node_util.cc
Currently two warnings are generated regarding unused variables. This commit removes the unused variables. PR-URL: #24717 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5874a03 commit 87c864c

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)