From f938ef7492f40a81ca2bcae68fd42b8e15235fab Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 9 Apr 2016 10:55:26 +0200 Subject: [PATCH] src: fix -Wunused-variable compiler warning Introduced in commit 7d8882b, "handle_wrap: expose an `isRefed()` check to JS". PR-URL: https://github.com/nodejs/node/pull/6129 Reviewed-By: Evan Lucas --- src/handle_wrap.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 9af60d5025..41c42caa3c 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -39,7 +39,6 @@ void HandleWrap::Unref(const FunctionCallbackInfo& args) { void HandleWrap::IsRefed(const FunctionCallbackInfo& args) { - Environment* env = Environment::GetCurrent(args); HandleWrap* wrap = Unwrap(args.Holder()); bool refed = IsAlive(wrap) && (wrap->flags_ & kUnref) == 0;