GeezerVison is showing github.com — src: remove unused ContextifyContext::WeakCallback · nodejs/node@021e2cf
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_contextify.cc -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -81,7 +81,6 @@ using v8::Symbol; |
81 | 81 | using v8::Uint32; |
82 | 82 | using v8::UnboundScript; |
83 | 83 | using v8::Value; |
84 | | -using v8::WeakCallbackInfo; |
85 | 84 |
|
86 | 85 | // The vm module executes code in a sandboxed environment with a different |
87 | 86 | // global object than the rest of the code. This is achieved by applying |
@@ -416,12 +415,6 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo<Value>& args) { |
416 | 415 | } |
417 | 416 | } |
418 | 417 |
|
419 | | -void ContextifyContext::WeakCallback( |
420 | | - const WeakCallbackInfo<ContextifyContext>& data) { |
421 | | - ContextifyContext* context = data.GetParameter(); |
422 | | - delete context; |
423 | | -} |
424 | | - |
425 | 418 | // static |
426 | 419 | ContextifyContext* ContextifyContext::ContextFromContextifiedSandbox( |
427 | 420 | Environment* env, |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_contextify.h -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -94,8 +94,6 @@ class ContextifyContext : public BaseObject { |
94 | 94 | bool produce_cached_data, |
95 | 95 | v8::Local<v8::Symbol> id_symbol, |
96 | 96 | const errors::TryCatchScope& try_catch); |
97 | | - static void WeakCallback( |
98 | | - const v8::WeakCallbackInfo<ContextifyContext>& data); |
99 | 97 | static v8::Intercepted PropertyGetterCallback( |
100 | 98 | v8::Local<v8::Name> property, |
101 | 99 | const v8::PropertyCallbackInfo<v8::Value>& args); |
|