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 <[email protected]>

PR-URL: #25793
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
  • Loading branch information
gengjiawen authored and addaleax committed Feb 1, 2019
1 parent 8c8144e commit dee9a61
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
Expand Up @@ -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();
Expand Down

0 comments on commit dee9a61

Please sign in to comment.