From 171b8108dfe1e89d4922bc9be0ebbbec608057d4 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 29 Nov 2018 09:01:29 +0100 Subject: 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 496b6cbbcb..810bb1929b 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; -- cgit v1.2.3