File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -942,21 +942,6 @@ inline void Environment::SetProtoMethodNoSideEffect(
942942 t->SetClassName (name_string); // NODE_SET_PROTOTYPE_METHOD() compatibility.
943943}
944944
945- inline void Environment::SetTemplateMethod (v8::Local<v8::FunctionTemplate> that,
946- const char * name,
947- v8::FunctionCallback callback) {
948- v8::Local<v8::FunctionTemplate> t =
949- NewFunctionTemplate (callback, v8::Local<v8::Signature>(),
950- v8::ConstructorBehavior::kAllow ,
951- v8::SideEffectType::kHasSideEffect );
952- // kInternalized strings are created in the old space.
953- const v8::NewStringType type = v8::NewStringType::kInternalized ;
954- v8::Local<v8::String> name_string =
955- v8::String::NewFromUtf8 (isolate (), name, type).ToLocalChecked ();
956- that->Set (name_string, t);
957- t->SetClassName (name_string); // NODE_SET_METHOD() compatibility.
958- }
959-
960945void Environment::AddCleanupHook (void (*fn)(void *), void* arg) {
961946 auto insertion_info = cleanup_hooks_.emplace (CleanupHookCallback {
962947 fn, arg, cleanup_hook_counter_++
Original file line number Diff line number Diff line change @@ -874,9 +874,6 @@ class Environment {
874874 inline void SetProtoMethod (v8::Local<v8::FunctionTemplate> that,
875875 const char * name,
876876 v8::FunctionCallback callback);
877- inline void SetTemplateMethod (v8::Local<v8::FunctionTemplate> that,
878- const char * name,
879- v8::FunctionCallback callback);
880877
881878 // Safe variants denote the function has no side effects.
882879 inline void SetMethodNoSideEffect (v8::Local<v8::Object> that,
You can’t perform that action at this time.
0 commit comments