We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11cf30 commit efadb10Copy full SHA for efadb10
2 files changed
src/env-inl.h
@@ -957,22 +957,6 @@ inline void Environment::SetTemplateMethod(v8::Local<v8::FunctionTemplate> that,
957
t->SetClassName(name_string); // NODE_SET_METHOD() compatibility.
958
}
959
960
-inline void Environment::SetTemplateMethodNoSideEffect(
961
- v8::Local<v8::FunctionTemplate> that,
962
- const char* name,
963
- v8::FunctionCallback callback) {
964
- v8::Local<v8::FunctionTemplate> t =
965
- NewFunctionTemplate(callback, v8::Local<v8::Signature>(),
966
- v8::ConstructorBehavior::kAllow,
967
- v8::SideEffectType::kHasNoSideEffect);
968
- // kInternalized strings are created in the old space.
969
- const v8::NewStringType type = v8::NewStringType::kInternalized;
970
- v8::Local<v8::String> name_string =
971
- v8::String::NewFromUtf8(isolate(), name, type).ToLocalChecked();
972
- that->Set(name_string, t);
973
- t->SetClassName(name_string); // NODE_SET_METHOD() compatibility.
974
-}
975
-
976
void Environment::AddCleanupHook(void (*fn)(void*), void* arg) {
977
auto insertion_info = cleanup_hooks_.emplace(CleanupHookCallback {
978
fn, arg, cleanup_hook_counter_++
src/env.h
@@ -889,10 +889,6 @@ class Environment {
889
inline void SetProtoMethodNoSideEffect(v8::Local<v8::FunctionTemplate> that,
890
const char* name,
891
v8::FunctionCallback callback);
892
- inline void SetTemplateMethodNoSideEffect(
893
894
895
- v8::FunctionCallback callback);
896
897
void BeforeExit(void (*cb)(void* arg), void* arg);
898
void RunBeforeExitCallbacks();
0 commit comments