src: remove unused AsyncResource constructor in node.h

Signed-off-by: gengjiawen <technicalcute@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/25793
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
This commit is contained in:
gengjiawen 2019-01-29 22:50:34 +08:00 committed by Anna Henningsen
parent 8c8144e51c
commit dee9a61bb9
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -710,16 +710,6 @@ class AsyncResource {
trigger_async_id);
}
AsyncResource(v8::Isolate* isolate,
v8::Local<v8::Object> resource,
v8::Local<v8::String> name,
async_id trigger_async_id = -1)
: isolate_(isolate),
resource_(isolate, resource) {
async_context_ = EmitAsyncInit(isolate, resource, name,
trigger_async_id);
}
virtual ~AsyncResource() {
EmitAsyncDestroy(isolate_, async_context_);
resource_.Reset();