summaryrefslogtreecommitdiffstats
path: root/src/expr/rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/rt.c')
-rw-r--r--src/expr/rt.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/expr/rt.c b/src/expr/rt.c
index 633031e..4f2e96b 100644
--- a/src/expr/rt.c
+++ b/src/expr/rt.c
@@ -122,19 +122,6 @@ static const char *rt_key2str(uint8_t key)
return "unknown";
}
-static inline int str2rt_key(const char *str)
-{
- int i;
-
- for (i = 0; i < NFT_RT_MAX; i++) {
- if (strcmp(str, rt_key2str_array[i]) == 0)
- return i;
- }
-
- errno = EINVAL;
- return -1;
-}
-
static int
nftnl_expr_rt_snprintf(char *buf, size_t len,
uint32_t flags, const struct nftnl_expr *e)