summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/async_wrap.cc3
-rw-r--r--src/async_wrap.h2
-rw-r--r--src/node_buffer.cc3
3 files changed, 0 insertions, 8 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index f697679399..b04ab68087 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -556,9 +556,6 @@ AsyncWrap::AsyncWrap(Environment* env,
CHECK_NE(provider, PROVIDER_NONE);
CHECK_GE(object->InternalFieldCount(), 1);
- // Shift provider value over to prevent id collision.
- persistent().SetWrapperClassId(NODE_ASYNC_ID_OFFSET + provider_type_);
-
// Use AsyncReset() call to execute the init() callbacks.
AsyncReset(execution_async_id, silent);
}
diff --git a/src/async_wrap.h b/src/async_wrap.h
index b10676ce1d..50864837d6 100644
--- a/src/async_wrap.h
+++ b/src/async_wrap.h
@@ -31,8 +31,6 @@
namespace node {
-#define NODE_ASYNC_ID_OFFSET 0xA1C
-
#define NODE_ASYNC_NON_CRYPTO_PROVIDER_TYPES(V) \
V(NONE) \
V(DNSCHANNEL) \
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index dd285156b5..8642477db4 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -33,8 +33,6 @@
#include <string.h>
#include <limits.h>
-#define BUFFER_ID 0xB0E4
-
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define THROW_AND_RETURN_UNLESS_BUFFER(env, obj) \
@@ -144,7 +142,6 @@ CallbackInfo::CallbackInfo(Isolate* isolate,
CHECK_NOT_NULL(data_);
persistent_.SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
- persistent_.SetWrapperClassId(BUFFER_ID);
isolate->AdjustAmountOfExternalAllocatedMemory(sizeof(*this));
}