diff --git a/napi-inl.h b/napi-inl.h index 230372d..b831f34 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -3415,8 +3415,7 @@ inline CallbackScope::CallbackScope( } inline CallbackScope::CallbackScope(napi_env env, napi_async_context context) - : _env(env), - _async_context(context) { + : _env(env) { napi_status status = napi_open_callback_scope( _env, Object::New(env), context, &_scope); NAPI_THROW_IF_FAILED_VOID(_env, status); diff --git a/napi.h b/napi.h index f821a97..16d0994 100644 --- a/napi.h +++ b/napi.h @@ -1684,7 +1684,6 @@ namespace Napi { private: napi_env _env; - napi_async_context _async_context; napi_callback_scope _scope; }; #endif