Permalink
Browse files

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>
  • Loading branch information...
danbev authored and Trott committed Nov 29, 2018
1 parent 7b8058a commit 171b8108dfe1e89d4922bc9be0ebbbec608057d4
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/node_util.cc
@@ -56,7 +56,6 @@ static void GetOwnNonIndexProperties(
}
static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
// Return undefined if it's not a Promise.
if (!args[0]->IsPromise())
return;
@@ -75,7 +74,6 @@ static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
}
static void GetProxyDetails(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
// Return undefined if it's not a proxy.
if (!args[0]->IsProxy())
return;

0 comments on commit 171b810

Please sign in to comment.