From 81924ffa4fc97f19da9b450828234c625c89b02b Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sun, 6 Jan 2019 11:20:25 +0100 Subject: [PATCH] src: remove unused isolate variable Currently the following compiler warning is generated: ../src/node_task_queue.cc:93:12: warning: unused variable 'isolate' [-Wunused-variable] Isolate* isolate = env->isolate(); ^ 1 warning generated. This commit removes the unused variable. PR-URL: https://github.com/nodejs/node/pull/25368 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- src/node_task_queue.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node_task_queue.cc b/src/node_task_queue.cc index 43d8e1cc246b8c..b7bafe6db69c36 100644 --- a/src/node_task_queue.cc +++ b/src/node_task_queue.cc @@ -90,7 +90,6 @@ void PromiseRejectCallback(PromiseRejectMessage message) { static void SetPromiseRejectCallback( const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); - Isolate* isolate = env->isolate(); CHECK(args[0]->IsFunction()); env->set_promise_reject_callback(args[0].As());