src: remove dead code in async_wrap · nodejs/node@4559fac
@@ -488,31 +488,15 @@ AsyncWrap::AsyncWrap(Environment* env,
488488 Local<Object> object,
489489 ProviderType provider,
490490double execution_async_id)
491- : AsyncWrap(env, object, provider, execution_async_id, false) {}
492-493-AsyncWrap::AsyncWrap(Environment* env,
494- Local<Object> object,
495- ProviderType provider,
496-double execution_async_id,
497-bool silent)
498491 : AsyncWrap(env, object) {
499492CHECK_NE(provider, PROVIDER_NONE);
500493 provider_type_ = provider;
501494502495// Use AsyncReset() call to execute the init() callbacks.
503-AsyncReset(object, execution_async_id, silent);
496+AsyncReset(object, execution_async_id);
504497 init_hook_ran_ = true;
505498}
506499507-AsyncWrap::AsyncWrap(Environment* env,
508- Local<Object> object,
509- ProviderType provider,
510-double execution_async_id,
511-double trigger_async_id)
512- : AsyncWrap(env, object, provider, execution_async_id, true) {
513- trigger_async_id_ = trigger_async_id;
514-}
515-516500AsyncWrap::AsyncWrap(Environment* env, Local<Object> object)
517501 : BaseObject(env, object),
518502context_frame_(env->isolate(),
@@ -592,8 +576,7 @@ void AsyncWrap::EmitDestroy(Environment* env, double async_id) {
592576// Generalized call for both the constructor and for handles that are pooled
593577// and reused over their lifetime. This way a new uid can be assigned when
594578// the resource is pulled out of the pool and put back into use.
595-void AsyncWrap::AsyncReset(Local<Object> resource, double execution_async_id,
596-bool silent) {
579+void AsyncWrap::AsyncReset(Local<Object> resource, double execution_async_id) {
597580CHECK_NE(provider_type(), PROVIDER_NONE);
598581599582if (async_id_ != kInvalidAsyncId) {
@@ -642,8 +625,6 @@ void AsyncWrap::AsyncReset(Local<Object> resource, double execution_async_id,
642625643626 context_frame_.Reset(isolate, async_context_frame::current(isolate));
644627645-if (silent) return;
646-647628EmitAsyncInit(env(), resource,
648629env()->async_hooks()->provider_string(provider_type()),
649630 async_id_, trigger_async_id_);