]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
json: Drop unused symbolic_constant_json() stub
authorPhil Sutter <phil@nwl.cc>
Thu, 11 Oct 2018 15:48:55 +0000 (17:48 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Oct 2018 11:37:51 +0000 (13:37 +0200)
This seems like a left-over from day 1: Said function is static in
json.c, so there is no point in providing a stub when compiling with
JSON disabled.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/json.h

index 99b676446516b6b4a1c552195c838e4e075ca5a1..663375489bc5181d8e8e4c797b4962098606ce9e 100644 (file)
@@ -164,12 +164,6 @@ STMT_PRINT_STUB(tproxy)
 #undef EXPR_PRINT_STUB
 #undef JSON_PRINT_STUB
 
-static inline json_t *symbolic_constant_json(const struct symbol_table *tbl,
-                                            const struct expr *expr)
-{
-       return NULL;
-}
-
 static inline int do_command_list_json(struct netlink_ctx *ctx, struct cmd *cmd)
 {
        return -1;