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:
parent
8c8144e51c
commit
dee9a61bb9
10
src/node.h
10
src/node.h
@ -710,16 +710,6 @@ class AsyncResource {
|
|||||||
trigger_async_id);
|
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() {
|
virtual ~AsyncResource() {
|
||||||
EmitAsyncDestroy(isolate_, async_context_);
|
EmitAsyncDestroy(isolate_, async_context_);
|
||||||
resource_.Reset();
|
resource_.Reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user