1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-28 09:35:19 +00:00

Remove old stopping code.

This commit is contained in:
2017-08-05 13:26:29 -07:00
parent 508e98413d
commit 23a3eb88f1
6 changed files with 33 additions and 156 deletions

View File

@@ -92,15 +92,10 @@ public class BinaryNode extends TreeNode {
@Override
public <T> T reduce(Reducer<T> reducer) {
if (Thread.currentThread().isInterrupted())
return null;
T leftReduce = left.reduce(reducer);
T rightReduce = right.reduce(reducer);
if (leftReduce == null || rightReduce == null) return null;
T a = reducer.reduceNode(this, leftReduce, rightReduce);
if (Thread.currentThread().isInterrupted())
return null;
return a;
return reducer.reduceNode(this, leftReduce, rightReduce);
}
@Override