]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
expression: remove compound_expr_add()
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Aug 2025 13:16:22 +0000 (15:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Aug 2025 21:52:08 +0000 (23:52 +0200)
No more users of this function after conversion to type safe variant,
remove it.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/expression.h
src/expression.c

index ad469db2e136318b1959d693dd234c65083aafd1..d36eea97b421fbf470746071c161ee18ddd9e9d4 100644 (file)
@@ -525,7 +525,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);
index 8cf06b9adefa789da010d69a79e35b5746d88cb2..bceb2a320da8f438fd398b39e4ca853966c233a2 100644 (file)
@@ -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--;