Skip to content

Commit 316871f

Browse files
bnoordhuisevanlucas
authored andcommitted
src: fix -Wunused-variable compiler warning
Introduced in commit 7d8882b, "handle_wrap: expose an `isRefed()` check to JS". PR-URL: #6129 Reviewed-By: Evan Lucas <[email protected]>
1 parent d313204 commit 316871f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/handle_wrap.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void HandleWrap::Unref(const FunctionCallbackInfo<Value>& args) {
3939

4040

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

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

0 commit comments

Comments
 (0)