Skip to content

Commit

Permalink
src: fix -Wunused-variable compiler warning
Browse files Browse the repository at this point in the history
Introduced in commit 7d8882b, "handle_wrap: expose an `isRefed()` check
to JS".

PR-URL: #6129
Reviewed-By: Evan Lucas <evanlucas@me.com>
  • Loading branch information
bnoordhuis authored and evanlucas committed May 17, 2016
1 parent d313204 commit 316871f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/handle_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void HandleWrap::Unref(const FunctionCallbackInfo<Value>& args) {


void HandleWrap::IsRefed(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
HandleWrap* wrap = Unwrap<HandleWrap>(args.Holder());

bool refed = IsAlive(wrap) && (wrap->flags_ & kUnref) == 0;
Expand Down

0 comments on commit 316871f

Please sign in to comment.