diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 0752a67326d310..06722624ad6d90 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -81,7 +81,6 @@ using v8::Symbol; using v8::Uint32; using v8::UnboundScript; using v8::Value; -using v8::WeakCallbackInfo; // The vm module executes code in a sandboxed environment with a different // global object than the rest of the code. This is achieved by applying @@ -416,12 +415,6 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo& args) { } } -void ContextifyContext::WeakCallback( - const WeakCallbackInfo& data) { - ContextifyContext* context = data.GetParameter(); - delete context; -} - // static ContextifyContext* ContextifyContext::ContextFromContextifiedSandbox( Environment* env, diff --git a/src/node_contextify.h b/src/node_contextify.h index afefe54cbbe4b9..023cdc5d3d8c00 100644 --- a/src/node_contextify.h +++ b/src/node_contextify.h @@ -94,8 +94,6 @@ class ContextifyContext : public BaseObject { bool produce_cached_data, v8::Local id_symbol, const errors::TryCatchScope& try_catch); - static void WeakCallback( - const v8::WeakCallbackInfo& data); static v8::Intercepted PropertyGetterCallback( v8::Local property, const v8::PropertyCallbackInfo& args);