Skip to content

Commit ed56ed0

Browse files
committed
src: remove no longer used util
1 parent 06221a7 commit ed56ed0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/node_util.cc

-7
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,6 @@ static void GuessHandleType(const FunctionCallbackInfo<Value>& args) {
289289
args.GetReturnValue().Set(OneByteString(env->isolate(), type));
290290
}
291291

292-
static void IsConstructor(const FunctionCallbackInfo<Value>& args) {
293-
CHECK(args[0]->IsFunction());
294-
args.GetReturnValue().Set(args[0].As<v8::Function>()->IsConstructor());
295-
}
296-
297292
static void ToUSVString(const FunctionCallbackInfo<Value>& args) {
298293
Environment* env = Environment::GetCurrent(args);
299294
CHECK_GE(args.Length(), 2);
@@ -344,7 +339,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
344339
registry->Register(WeakReference::IncRef);
345340
registry->Register(WeakReference::DecRef);
346341
registry->Register(GuessHandleType);
347-
registry->Register(IsConstructor);
348342
registry->Register(ToUSVString);
349343
}
350344

@@ -384,7 +378,6 @@ void Initialize(Local<Object> target,
384378
env->SetMethodNoSideEffect(target, "getConstructorName", GetConstructorName);
385379
env->SetMethodNoSideEffect(target, "getExternalValue", GetExternalValue);
386380
env->SetMethod(target, "sleep", Sleep);
387-
env->SetMethodNoSideEffect(target, "isConstructor", IsConstructor);
388381

389382
env->SetMethod(target, "arrayBufferViewHasBuffer", ArrayBufferViewHasBuffer);
390383
Local<Object> constants = Object::New(env->isolate());

0 commit comments

Comments
 (0)