public String toString() { return resolve().toString(); }
public Forest resolve() {
if (hp==null) return res;
- HashSet<Body> results = null;
FastSet<Body> nh = new FastSet<Body>();
+ /*
+ HashSet<Body> results = null;
for(Forest<?> p : hp)
for(Body<?> b : (IterableForest<?>)p) {
if (b.keep() && (b.creator==null || !b.creator.lame)) {
}
}
hp = null;
- res = new MultiForest(nh, valid);
+ */
+ for(Forest<?> p : hp)
+ for(Body<?> b : (IterableForest<?>)p)
+ if (b.creator==null || !b.creator.lame)
+ b.addTo(nh);
+ res = new MultiForest(nh, nh.size()>0);
+ hp = null;
return res;
}
}