summaryrefslogtreecommitdiffstats
path: root/src/expr/meta.c
diff options
context:
space:
mode:
authorZhongqiu Duan <dzq.aishenghu0@gmail.com>2025-03-19 14:20:53 +0000
committerFlorian Westphal <fw@strlen.de>2025-03-19 16:02:28 +0100
commitc59d42a90b0d279955d5051c2306733bc01522f8 (patch)
tree4875c04f9bad97a4c3e88bf329b6c0d75935556d /src/expr/meta.c
parenta7dfa49d34c76a420778a6fce2b5e7d85f0c8b1a (diff)
src: remove unused str2XXX helpers
After commit 80077787f8f2 ("src: remove json support"), these internal functions are no longer used: nftnl_str2hooknum nftnl_str2ntoh nftnl_str2cmp str2ctkey str2ctdir str2exthdr_op str2exthdr_type str2meta_key nftnl_str2nat nftnl_str2range str2rt_key nftnl_str2hooknum Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/expr/meta.c')
-rw-r--r--src/expr/meta.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/expr/meta.c b/src/expr/meta.c
index 56d3dda..d1ff6c4 100644
--- a/src/expr/meta.c
+++ b/src/expr/meta.c
@@ -173,19 +173,6 @@ static const char *meta_key2str(uint8_t key)
return "unknown";
}
-static inline int str2meta_key(const char *str)
-{
- int i;
-
- for (i = 0; i < NFT_META_MAX; i++) {
- if (strcmp(str, meta_key2str_array[i]) == 0)
- return i;
- }
-
- errno = EINVAL;
- return -1;
-}
-
static int
nftnl_expr_meta_snprintf(char *buf, size_t len,
uint32_t flags, const struct nftnl_expr *e)