Skip to content

Commit b2427c0

Browse files
committed
#5 Fix remaining dead code warnings.
1 parent 26e35d2 commit b2427c0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ protected void registerCallback(List callbacks, Object o, Method m) {
23602360
throw new BDDException("Base object for callback method is the wrong type");
23612361
}
23622362
}
2363-
if (false) {
2363+
if (DEBUG) {
23642364
Class[] params = m.getParameterTypes();
23652365
if (params.length != 1 || params[0] != int.class) {
23662366
throw new BDDException("Wrong signature for callback");

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public class JFactory extends BDDFactoryIntImpl {
3838

3939
static final boolean VERIFY_ASSERTIONS = false;
4040

41+
static final boolean DO_BDD_VALIDATE = false;
42+
43+
static final boolean PRE_INIT_OP_CACHES = false;
44+
4145
static final boolean SWAPCOUNT = false;
4246

4347
public static final String REVISION = "$Revision: 480 $";
@@ -1946,7 +1950,7 @@ int bdd_apply(int l, int r, int op) {
19461950
}
19471951

19481952
checkresize();
1949-
if (false) {
1953+
if (DO_BDD_VALIDATE) {
19501954
bdd_validate(res);
19511955
}
19521956
return res;
@@ -3345,7 +3349,7 @@ int bdd_exist(int r, int var) {
33453349
}
33463350

33473351
checkresize();
3348-
if (false) {
3352+
if (DO_BDD_VALIDATE) {
33493353
bdd_validate(res);
33503354
}
33513355
return res;
@@ -4754,7 +4758,7 @@ void bdd_init(int initnodesize, int cs) {
47544758
boolean satPolarity;
47554759

47564760
void bdd_operator_init(int cachesize) {
4757-
if (false) {
4761+
if (PRE_INIT_OP_CACHES) {
47584762
applycache = BddCacheI_init(cachesize);
47594763
itecache = BddCacheI_init(cachesize);
47604764
quantcache = BddCacheI_init(cachesize);

0 commit comments

Comments
 (0)