diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-29 16:07:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-29 16:07:17 -0500 |
commit | 6961c9a4c2fe8612db222bfd1693e38f7a43a2cd (patch) | |
tree | c6e9eec1d0bdeaa6906e33c810f4228da8ca7c50 /src/opt.c | |
parent | ba3ea2a9148da4c7ab0718e5ec077620ee29e88d (diff) | |
download | bfs-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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); |