From 172ed3de085bd6c59ffe877d48d4c49eeaffa8c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 25 Aug 2023 17:51:11 +0200 Subject: [PATCH] refactor: remove dead code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 3cc8b220..60819027 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1238,17 +1238,6 @@ export abstract class AbstractPool< } } - // private incrementTasksStolen (workerNodeKey: number, workerNode: WorkerNode): void { - // ++workerNode.usage.tasks.stolen - // if (this.shallUpdateTaskFunctionWorkerUsage(workerNodeKey)) { - // const taskFunctionWorkerUsage = - // workerNode.getTaskFunctionWorkerUsage( - // task.name as string - // ) as WorkerUsage - // ++taskFunctionWorkerUsage.tasks.stolen - // } - // } - private taskStealingOnEmptyQueue (workerId: number): void { const destinationWorkerNodeKey = this.getWorkerNodeKeyByWorkerId(workerId) const destinationWorkerNode = this.workerNodes[destinationWorkerNodeKey] -- 2.34.1