Skip to content

Commit

Permalink
src: remove unused isolate variable
Browse files Browse the repository at this point in the history
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: nodejs#25368
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
danbev authored and BridgeAR committed Jan 16, 2019
1 parent 81aae04 commit 7bb31bd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_task_queue.cc
Expand Up @@ -90,7 +90,6 @@ void PromiseRejectCallback(PromiseRejectMessage message) {
static void SetPromiseRejectCallback(
const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

CHECK(args[0]->IsFunction());
env->set_promise_reject_callback(args[0].As<Function>());
Expand Down

0 comments on commit 7bb31bd

Please sign in to comment.