Skip to content

Commit

Permalink
src: remove unused CallbackScope member
Browse files Browse the repository at this point in the history
PR-URL: #391
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
Reviewed-By: Jinho Bang <[email protected]>
  • Loading branch information
Gabriel Schulhof authored and mhdawson committed Nov 13, 2018
1 parent d47399f commit e7cd292
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,6 @@ namespace Napi {

private:
napi_env _env;
napi_async_context _async_context;
napi_callback_scope _scope;
};
#endif
Expand Down

0 comments on commit e7cd292

Please sign in to comment.