summaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/node.cc b/src/node.cc
index 72a83d538f..ed4da64425 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1040,61 +1040,6 @@ static MaybeLocal<Value> ExecuteString(Environment* env,
}
-static void GetActiveRequests(const FunctionCallbackInfo<Value>& args) {
- Environment* env = Environment::GetCurrent(args);
-
- Local<Array> ary = Array::New(args.GetIsolate());
- Local<Context> ctx = env->context();
- Local<Function> fn = env->push_values_to_array_function();
- Local<Value> argv[NODE_PUSH_VAL_TO_ARRAY_MAX];
- size_t idx = 0;
-
- for (auto w : *env->req_wrap_queue()) {
- if (w->persistent().IsEmpty())
- continue;
- argv[idx] = w->GetOwner();
- if (++idx >= arraysize(argv)) {
- fn->Call(ctx, ary, idx, argv).ToLocalChecked();
- idx = 0;
- }
- }
-
- if (idx > 0) {
- fn->Call(ctx, ary, idx, argv).ToLocalChecked();
- }
-
- args.GetReturnValue().Set(ary);
-}
-
-
-// Non-static, friend of HandleWrap. Could have been a HandleWrap method but
-// implemented here for consistency with GetActiveRequests().
-void GetActiveHandles(const FunctionCallbackInfo<Value>& args) {
- Environment* env = Environment::GetCurrent(args);
-
- Local<Array> ary = Array::New(env->isolate());
- Local<Context> ctx = env->context();
- Local<Function> fn = env->push_values_to_array_function();
- Local<Value> argv[NODE_PUSH_VAL_TO_ARRAY_MAX];
- size_t idx = 0;
-
- for (auto w : *env->handle_wrap_queue()) {
- if (!HandleWrap::HasRef(w))
- continue;
- argv[idx] = w->GetOwner();
- if (++idx >= arraysize(argv)) {
- fn->Call(ctx, ary, idx, argv).ToLocalChecked();
- idx = 0;
- }
- }
- if (idx > 0) {
- fn->Call(ctx, ary, idx, argv).ToLocalChecked();
- }
-
- args.GetReturnValue().Set(ary);
-}
-
-
NO_RETURN void Abort() {
DumpBacktrace(stderr);
fflush(stderr);