From e2b7e41e23616c77fd55e30a7724fa50633ce730 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 31 Jul 2024 20:07:10 -0700 Subject: [PATCH] child_process: remove unused internal event Tests pass without this event being emitted. Remove it. PR-URL: https://github.com/nodejs/node/pull/53793 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Yagiz Nizipli Reviewed-By: Trivikram Kamat --- lib/internal/child_process.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index 49edaba5b5..816ebe17fc 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -557,7 +557,6 @@ class Control extends EventEmitter { unrefCounted() { if (--this.#refs === 0 && !this.#refExplicitlySet) { this.#channel.unref(); - this.emit('unref'); } }