Skip to content

Commit

Permalink
src: remove unused AsyncResource constructor in node.h
Browse files Browse the repository at this point in the history
Signed-off-by: gengjiawen <technicalcute@gmail.com>

PR-URL: #25793
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
gengjiawen authored and addaleax committed Feb 3, 2019
1 parent 7556994 commit 8a8c178
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/node.h
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 8a8c178

Please sign in to comment.