Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 90d481e

Browse filesBrowse 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
Copy full SHA for 90d481e

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Open diff view settings
Collapse file

‎src/node_util.cc‎

Copy file name to clipboardExpand all lines: src/node_util.cc
-2Lines changed: 0 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.