summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-07-21 19:24:28 +0200
committerAnna Henningsen <anna@addaleax.net>2017-07-27 20:02:01 +0200
commitd731369b1d0822d5a766612a8a6ef3416aa9d580 (patch)
tree6c8f59282d8d76a285d09cdc90b90b5a47fe1f93 /src/node.h
parent2e7ccc252e6c76835e892d135a29c45eb91ab5a4 (diff)
downloadnode-new-d731369b1d0822d5a766612a8a6ef3416aa9d580.tar.gz
async_hooks: remove deprecated APIs
These APIs were introduced during the lifetime of Node 8 in an experimental API and should safely be removable in Node 9+. PR-URL: https://github.com/nodejs/node/pull/14414 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Andreas Madsen <amwebdk@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/node.h b/src/node.h
index 88465a7634..b1d179bd16 100644
--- a/src/node.h
+++ b/src/node.h
@@ -533,17 +533,9 @@ NODE_EXTERN void AddPromiseHook(v8::Isolate* isolate,
* zero then no execution has been set. This will happen if the user handles
* I/O from native code. */
NODE_EXTERN async_id AsyncHooksGetExecutionAsyncId(v8::Isolate* isolate);
-/* legacy alias */
-NODE_EXTERN NODE_DEPRECATED("Use AsyncHooksGetExecutionAsyncId(isolate)",
- async_id AsyncHooksGetCurrentId(v8::Isolate* isolate));
-
/* Return same value as async_hooks.triggerAsyncId(); */
NODE_EXTERN async_id AsyncHooksGetTriggerAsyncId(v8::Isolate* isolate);
-/* legacy alias */
-NODE_EXTERN NODE_DEPRECATED("Use AsyncHooksGetTriggerAsyncId(isolate)",
- async_id AsyncHooksGetTriggerId(v8::Isolate* isolate));
-
/* If the native API doesn't inherit from the helper class then the callbacks
* must be triggered manually. This triggers the init() callback. The return
@@ -643,12 +635,6 @@ class AsyncResource {
return resource_.Get(isolate_);
}
- NODE_DEPRECATED("Use AsyncResource::get_async_id()",
- async_id get_uid() const {
- return get_async_id();
- }
- )
-
async_id get_async_id() const {
return async_context_.async_id;
}