No more users of this function after conversion to type safe variant, remove it. Signed-off-by: Pablo Neira Ayuso --- include/expression.h | 1 - src/expression.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/expression.h b/include/expression.h index c2c59891a8a1..ce774fd32887 100644 --- a/include/expression.h +++ b/include/expression.h @@ -519,7 +519,6 @@ struct expr *range_expr_to_prefix(struct expr *range); extern struct expr *compound_expr_alloc(const struct location *loc, enum expr_types etypes); -extern void compound_expr_add(struct expr *compound, struct expr *expr); extern void compound_expr_remove(struct expr *compound, struct expr *expr); extern void list_expr_sort(struct list_head *head); extern void list_splice_sorted(struct list_head *list, struct list_head *head); diff --git a/src/expression.c b/src/expression.c index 6c5140b749f9..ee1fe34e2de9 100644 --- a/src/expression.c +++ b/src/expression.c @@ -1048,12 +1048,6 @@ static void compound_expr_print(const struct expr *expr, const char *delim, } } -void compound_expr_add(struct expr *compound, struct expr *expr) -{ - list_add_tail(&expr->list, &compound->expr_set.expressions); - compound->expr_set.size++; -} - void compound_expr_remove(struct expr *compound, struct expr *expr) { compound->expr_set.size--; -- 2.30.2