diff options
author | Phil Sutter <phil@nwl.cc> | 2020-12-19 02:22:56 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-03-09 14:23:13 +0100 |
commit | 54256a0401195e16f4c55eda849d28a264b55208 (patch) | |
tree | 88fdeb732198dd26313b243848a1915b2fa4f0e6 /src | |
parent | 743926643287de4bfc2a460585fc2f7ba9ce8490 (diff) |
expr/xfrm: Kill dead code
These functions were used by removed JSON parser only.
Fixes: 80077787f8f21 ("src: remove json support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r-- | src/expr/xfrm.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/expr/xfrm.c b/src/expr/xfrm.c index 8fe5438..0502b53 100644 --- a/src/expr/xfrm.c +++ b/src/expr/xfrm.c @@ -171,34 +171,6 @@ static const char *xfrmdir2str(uint8_t dir) return xfrmdir2str_array[dir]; } -#ifdef JSON_PARSING -static uint32_t str2xfrmkey(const char *s) -{ - int i; - - for (i = 0; - i < sizeof(xfrmkey2str_array) / sizeof(xfrmkey2str_array[0]); - i++) { - if (strcmp(xfrmkey2str_array[i], s) == 0) - return i; - } - return -1; -} - -static int str2xfmrdir(const char *s) -{ - int i; - - for (i = 0; - i < sizeof(xfrmdir2str_array) / sizeof(xfrmdir2str_array[0]); - i++) { - if (strcmp(xfrmkey2str_array[i], s) == 0) - return i; - } - return -1; -} -#endif - static int nftnl_expr_xfrm_snprintf_default(char *buf, size_t size, const struct nftnl_expr *e) |