refactor: remove dead code
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 25 Aug 2023 15:51:11 +0000 (17:51 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 25 Aug 2023 15:51:11 +0000 (17:51 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts

index 3cc8b2204cefd18af104b670a30eaea2a39bad1a..6081902720554c2bcdb809d37f04d5f93ed89da7 100644 (file)
@@ -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]