From 4fceb6d915e95aac255003635f0e37ae176cbcbe Mon Sep 17 00:00:00 2001 From: Kenvin Davies Date: Wed, 7 Nov 2018 04:14:33 -0500 Subject: [PATCH] src: remove unused CallbackScope member PR-URL: https://github.com/nodejs/node-addon-api/pull/391 Reviewed-By: Michael Dawson Reviewed-By: Nicola Del Gobbo Reviewed-By: Jinho Bang --- napi-inl.h | 3 +-- napi.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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