Skip to content

Commit 2944fa1

Browse files
Bitwuzla: Remove dead code
1 parent ce2688e commit 2944fa1

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/org/sosy_lab/java_smt/solvers/bitwuzla/BitwuzlaFormulaCreator.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
import java.util.Comparator;
2323
import java.util.Deque;
2424
import java.util.HashMap;
25-
import java.util.Iterator;
2625
import java.util.LinkedHashSet;
2726
import java.util.List;
2827
import java.util.Map;
29-
import java.util.Map.Entry;
30-
import java.util.Optional;
3128
import java.util.Set;
3229
import org.sosy_lab.java_smt.api.ArrayFormula;
3330
import org.sosy_lab.java_smt.api.BitvectorFormula;
@@ -580,26 +577,10 @@ public BooleanFormula encapsulateBoolean(Term pTerm) {
580577
return new BitwuzlaBooleanFormula(pTerm);
581578
}
582579

583-
protected Table<String, Sort, Term> getCache() {
580+
Table<String, Sort, Term> getCache() {
584581
return formulaCache;
585582
}
586583

587-
// True if the entered String has an existing variable in the cache.
588-
protected boolean formulaCacheContains(String variable) {
589-
// There is always only 1 type permitted per variable
590-
return formulaCache.containsRow(variable);
591-
}
592-
593-
// Optional that contains the variable to the entered String if there is one.
594-
protected Optional<Term> getFormulaFromCache(String variable) {
595-
Iterator<Entry<Sort, Term>> entrySetIter = formulaCache.row(variable).entrySet().iterator();
596-
if (entrySetIter.hasNext()) {
597-
// If there is a non-empty row for an entry, there is only one entry
598-
return Optional.of(entrySetIter.next().getValue());
599-
}
600-
return Optional.empty();
601-
}
602-
603584
@Override
604585
public Object convertValue(Term term) {
605586
Preconditions.checkArgument(term.is_value(), "Term \"%s\" is not a value.", term);

0 commit comments

Comments
 (0)