[nft,2/8] json: Drop unused symbolic_constant_json() stub

Message ID 20181011154901.20082-3-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series
  • monitor: Use libnftables for JSON output
Related show

Commit Message

Phil Sutter Oct. 11, 2018, 3:48 p.m.
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>
---
 include/json.h | 6 ------
 1 file changed, 6 deletions(-)

Patch

diff --git a/include/json.h b/include/json.h
index 99b676446516b..663375489bc51 100644
--- a/include/json.h
+++ b/include/json.h
@@ -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;