Skip to content

Commit afed95f

Browse files
authored
remove unused function
1 parent 3af4402 commit afed95f

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/logic.jl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@ for (name, alt, head, func) in (
2929
end
3030
end
3131

32-
"""
33-
to_cnf!(expr::Expr)
34-
35-
Convert an expression of symbolic Boolean variables and operators to CNF.
36-
"""
37-
function to_cnf!(expr::Expr)
38-
check_logical_proposition(expr) #check that valid boolean symbols and variables are used in the logical proposition
39-
eliminate_equivalence!(expr) #eliminate ⇔
40-
eliminate_implication!(expr) #eliminmate ⇒
41-
move_negations_inwards!(expr) #expand ¬
42-
clause_list = distribute_and_over_or_recursively!(expr) #distribute ∧ over ∨ recursively
43-
@assert !isempty(clause_list) "Conversion to CNF failed."
44-
45-
return clause_list
46-
end
47-
4832
################################################################################
4933
# CONJUNCTIVE NORMAL FORM
5034
################################################################################
@@ -307,4 +291,4 @@ function _reformulate_clause(model::JuMP.Model, lexpr::_LogicalExpr)
307291
error("Expression was not converted to proper Conjunctive Normal Form:\n$lexpr.")
308292
end
309293
return func
310-
end
294+
end

0 commit comments

Comments
 (0)