From 316871f268afbaf4f066b874acf095e114111a97 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 9af60d50258243..41c42caa3cca11 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;