1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-26 16:45:21 +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

@@ -33,14 +33,9 @@ public class UnaryNode extends TreeNode {
@Override
public <T> T reduce(Reducer<T> reducer) {
if (Thread.currentThread().isInterrupted())
return null;
Object reducedChild = applyTo.reduce(reducer);
if (reducedChild == null) return null;
T a = reducer.reduceNode(this, reducedChild);
if (Thread.currentThread().isInterrupted())
return null;
return a;
return reducer.reduceNode(this, reducedChild);
}
/**