Skip to content

Commit a83d427

Browse files
addaleaxMylesBorins
authored andcommitted
src: remove unused persistent properties from env
PR-URL: #15096 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
1 parent e3f5c58 commit a83d427

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/env.h

-3
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,11 @@ struct http2_state;
295295
V(async_hooks_before_function, v8::Function) \
296296
V(async_hooks_after_function, v8::Function) \
297297
V(binding_cache_object, v8::Object) \
298-
V(buffer_constructor_function, v8::Function) \
299298
V(buffer_prototype_object, v8::Object) \
300299
V(context, v8::Context) \
301300
V(domain_array, v8::Array) \
302301
V(domains_stack_array, v8::Array) \
303302
V(inspector_console_api_object, v8::Object) \
304-
V(jsstream_constructor_template, v8::FunctionTemplate) \
305303
V(module_load_list_array, v8::Array) \
306304
V(pbkdf2_constructor_template, v8::ObjectTemplate) \
307305
V(pipe_constructor_template, v8::FunctionTemplate) \
@@ -318,7 +316,6 @@ struct http2_state;
318316
V(tcp_constructor_template, v8::FunctionTemplate) \
319317
V(tick_callback_function, v8::Function) \
320318
V(tls_wrap_constructor_function, v8::Function) \
321-
V(tls_wrap_constructor_template, v8::FunctionTemplate) \
322319
V(tty_constructor_template, v8::FunctionTemplate) \
323320
V(udp_constructor_function, v8::Function) \
324321
V(url_constructor_function, v8::Function) \

src/js_stream.cc

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ void JSStream::Initialize(Local<Object> target,
230230

231231
StreamBase::AddMethods<JSStream>(env, t, StreamBase::kFlagHasWritev);
232232
target->Set(jsStreamString, t->GetFunction());
233-
env->set_jsstream_constructor_template(t);
234233
}
235234

236235
} // namespace node

src/tls_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,6 @@ void TLSWrap::Initialize(Local<Object> target,
962962
env->SetProtoMethod(t, "setServername", SetServername);
963963
#endif // SSL_CRT_SET_TLSEXT_SERVERNAME_CB
964964

965-
env->set_tls_wrap_constructor_template(t);
966965
env->set_tls_wrap_constructor_function(t->GetFunction());
967966

968967
target->Set(tlsWrapString, t->GetFunction());

0 commit comments

Comments
 (0)