From 8a8c17880e488c8c5533dc045453179aa66c916d Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Tue, 29 Jan 2019 22:50:34 +0800 Subject: [PATCH] src: remove unused AsyncResource constructor in node.h Signed-off-by: gengjiawen PR-URL: https://github.com/nodejs/node/pull/25793 Reviewed-By: James M Snell Reviewed-By: Minwoo Jung --- src/node.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/node.h b/src/node.h index 43795e0e391b9c..72911d7982b72f 100644 --- a/src/node.h +++ b/src/node.h @@ -710,16 +710,6 @@ class AsyncResource { trigger_async_id); } - AsyncResource(v8::Isolate* isolate, - v8::Local resource, - v8::Local 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();