From: Jérôme Benoit Date: Mon, 29 Apr 2024 11:00:11 +0000 (+0200) Subject: refactor: cleanup dead code X-Git-Tag: v4.0.0~1^2~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=037b50226d0183f50232e1867d0f0b201c9e55fb;p=poolifier.git refactor: cleanup dead code Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/worker-node.ts b/src/pools/worker-node.ts index a2878d89..99f4ab20 100644 --- a/src/pools/worker-node.ts +++ b/src/pools/worker-node.ts @@ -121,12 +121,6 @@ export class WorkerNode return this.tasksQueue.size >= this.tasksQueueBackPressureSize } - /** @inheritdoc */ - public resetUsage (): void { - this.usage = this.initWorkerUsage() - this.taskFunctionsUsage.clear() - } - /** @inheritdoc */ public async terminate (): Promise { const waitWorkerExit = new Promise(resolve => { diff --git a/src/pools/worker.ts b/src/pools/worker.ts index ac6718fb..ffe92e0c 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -346,10 +346,6 @@ export interface IWorkerNode * @returns `true` if the worker node has back pressure, `false` otherwise. */ readonly hasBackPressure: () => boolean - /** - * Resets usage statistics. - */ - readonly resetUsage: () => void /** * Terminates the worker node. */