summaryrefslogtreecommitdiffstats
path: root/src/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-29 16:07:17 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-29 16:07:17 -0500
commit6961c9a4c2fe8612db222bfd1693e38f7a43a2cd (patch)
treec6e9eec1d0bdeaa6906e33c810f4228da8ca7c50 /src/opt.c
parentba3ea2a9148da4c7ab0718e5ec077620ee29e88d (diff)
downloadbfs-6961c9a4c2fe8612db222bfd1693e38f7a43a2cd.tar.xz
expr: Remove the synthetic flag
Only diagnostics cares about this, and we can just check if the pointers are equal.
Diffstat (limited to 'src/opt.c')
-rw-r--r--src/opt.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/opt.c b/src/opt.c
index fa2e66c..f7f80d7 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -366,10 +366,6 @@ static struct bfs_expr *negate_expr(struct bfs_expr *rhs, char **argv) {
return NULL;
}
- if (argv == &fake_not_arg) {
- expr->synthetic = true;
- }
-
expr->lhs = NULL;
expr->rhs = rhs;
return expr;
@@ -404,7 +400,6 @@ static struct bfs_expr *de_morgan(const struct opt_state *state, struct bfs_expr
expr->eval_fn = eval_and;
expr->argv = &fake_and_arg;
}
- expr->synthetic = true;
expr->lhs = negate_expr(expr->lhs, argv);
expr->rhs = negate_expr(expr->rhs, argv);