summaryrefslogtreecommitdiff
path: root/src/async_wrap.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2022-02-11 17:42:09 +0100
committerGitHub <noreply@github.com>2022-02-11 16:42:09 +0000
commitb51eba422f4988b954d24b4e7aa27bd9c491e58b (patch)
treeae5168d2f39785c4d1eaf4951b2dfc7d6303bd06 /src/async_wrap.cc
parent91d28d8b46cbb9b101ee2c51a32adafb12bc24b7 (diff)
downloadnode-new-b51eba422f4988b954d24b4e7aa27bd9c491e58b.tar.gz
src: remove separate definitions for static constexpr members
This is no longer necessary (and actually deprecated) since C++17. PR-URL: https://github.com/nodejs/node/pull/41755 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index d5a62951a7..77922bd04a 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -151,9 +151,6 @@ void AsyncWrap::EmitAfter(Environment* env, double async_id) {
env->async_hooks_after_function());
}
-// TODO(addaleax): Remove once we're on C++17.
-constexpr double AsyncWrap::kInvalidAsyncId;
-
static void SetupHooks(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);