Skip to content

Commit e8f0f78

Browse files
committed
#5 Removed BDDFactory.save_rec_orginal. Method is unused.
1 parent b2427c0 commit e8f0f78

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

src/main/java/com/github/javabdd/BDDFactory.java

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.Iterator;
2222
import java.util.LinkedList;
2323
import java.util.List;
24-
import java.util.Map;
2524
import java.util.StringTokenizer;
2625

2726
/**
@@ -36,6 +35,7 @@
3635
*/
3736
public abstract class BDDFactory {
3837
private static final boolean DEBUG = false;
38+
3939
private static final boolean ASSERT_FILL_IN_VAR_INDICES = false;
4040

4141
public static final String getProperty(String key, String def) {
@@ -827,40 +827,6 @@ public void save(BufferedWriter out, BDD r) throws IOException {
827827
// }
828828
}
829829

830-
/**
831-
* Helper function for save().
832-
*/
833-
protected int save_rec_original(BufferedWriter out, Map visited, BDD root) throws IOException {
834-
if (root.isZero()) {
835-
root.free();
836-
return 0;
837-
}
838-
if (root.isOne()) {
839-
root.free();
840-
return 1;
841-
}
842-
Integer i = (Integer)visited.get(root);
843-
if (i != null) {
844-
root.free();
845-
return i.intValue();
846-
}
847-
int v = visited.size() + 2;
848-
visited.put(root, v);
849-
850-
BDD l = root.low();
851-
int lo = save_rec_original(out, visited, l);
852-
853-
BDD h = root.high();
854-
int hi = save_rec_original(out, visited, h);
855-
856-
out.write(v + " ");
857-
out.write(root.var() + " ");
858-
out.write(lo + " ");
859-
out.write(hi + "\n");
860-
861-
return v;
862-
}
863-
864830
/**
865831
* Helper function for save().
866832
*/

0 commit comments

Comments
 (0)