Skip to content

Commit e7cd292

Browse files
Gabriel Schulhofmhdawson
authored andcommitted
src: remove unused CallbackScope member
PR-URL: nodejs#391 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Nicola Del Gobbo <[email protected]> Reviewed-By: Jinho Bang <[email protected]>
1 parent d47399f commit e7cd292

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

napi-inl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,8 +3415,7 @@ inline CallbackScope::CallbackScope(
34153415
}
34163416

34173417
inline CallbackScope::CallbackScope(napi_env env, napi_async_context context)
3418-
: _env(env),
3419-
_async_context(context) {
3418+
: _env(env) {
34203419
napi_status status = napi_open_callback_scope(
34213420
_env, Object::New(env), context, &_scope);
34223421
NAPI_THROW_IF_FAILED_VOID(_env, status);

napi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,6 @@ namespace Napi {
16841684

16851685
private:
16861686
napi_env _env;
1687-
napi_async_context _async_context;
16881687
napi_callback_scope _scope;
16891688
};
16901689
#endif

0 commit comments

Comments
 (0)