Skip to content

Commit 70794f3

Browse files
committed
remove duplicated function negate/invert
1 parent a13cd10 commit 70794f3

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

bfun.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,6 @@ void del_bfun(bfun* b) {
195195
del_cube_list((cube_list*) b);
196196
}
197197

198-
bfun* invert_cube(cube* c, int var_count) { // yuck
199-
bfun* foo = new_bfun(var_count);
200-
for (int i = 0; i < var_count; i++) {
201-
if (c->values[i] == t) {
202-
cube* bar = new_cube(var_count);
203-
set_false(bar, i);
204-
add_cube(foo, bar);
205-
} else if (c->values[i] == f) {
206-
cube* bar = new_cube(var_count);
207-
set_true(bar, i);
208-
add_cube(foo, bar);
209-
}
210-
}
211-
return foo;
212-
}
213198

214199
bfun* read_file(char* filename) {
215200
FILE *fp = fopen(filename, "r");

bfun.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ bfun* new_bfun(int vars);
3131
void del_bfun(bfun* b);
3232
void del_bfun_leave_cubes(bfun* b);
3333
void add_term(bfun* foo, cube* c);
34-
bfun* invert_cube(cube* c, int var_count);
3534
bfun* read_file(char* filename);
3635
void write_file(char* out_file, bfun* b);
3736
void print_bfun(bfun* foo);

0 commit comments

Comments
 (0)