From 87c864cd5ee55298a24f004e2b789db50275c3db Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 29 Nov 2018 09:01:29 +0100 Subject: [PATCH] src: remove unused variables in node_util.cc Currently two warnings are generated regarding unused variables. This commit removes the unused variables. PR-URL: https://github.com/nodejs/node/pull/24717 Reviewed-By: Richard Lau Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Jon Moss Reviewed-By: Luigi Pinca --- src/node_util.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_util.cc b/src/node_util.cc index 496b6cbbcb1573..810bb1929bb6f7 100644 --- a/src/node_util.cc +++ b/src/node_util.cc @@ -56,7 +56,6 @@ static void GetOwnNonIndexProperties( } static void GetPromiseDetails(const FunctionCallbackInfo& 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& args) { } static void GetProxyDetails(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args); // Return undefined if it's not a proxy. if (!args[0]->IsProxy()) return;