From c556ac3286ec8c8434630c6ba96a16f227ca37d1 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 1 Apr 2021 12:27:07 +0200 Subject: [PATCH] test: remove dead code `console.trace()` was used when printing the warning for a possible event listeners leak. It is no longer used since commit c6656db352 that introduced the `process.emitWarning()` API and used it to print the warning. --- test/parallel/test-http-many-ended-pipelines.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/parallel/test-http-many-ended-pipelines.js b/test/parallel/test-http-many-ended-pipelines.js index 20371e7e562721..8beece5f9aeeef 100644 --- a/test/parallel/test-http-many-ended-pipelines.js +++ b/test/parallel/test-http-many-ended-pipelines.js @@ -21,14 +21,6 @@ 'use strict'; const common = require('../common'); - -// No warnings should happen! -const trace = console.trace; -console.trace = function() { - trace.apply(console, arguments); - throw new Error('no tracing should happen here'); -}; - const http = require('http'); const net = require('net');