Remove unused function netlink_get_table
PATCH 1/1 Remove unused function netlink_get_table
netlink_get_table is defined but not used anywhere. Just remove it.
Signed-off-by Yanchuan Nian <[email protected]>
--- include/netlink.h | 2 -- src/netlink.c | 18 ------------------ 2 files changed, 20 deletions(-)
include/netlink.h +0 -2
@@ -107,8 +107,6 @@ extern int netlink_delete_table(struct netlink_ctx *ctx, const struct handle *h, const struct location *loc);extern int netlink_list_tables (struct netlink_ctx *ctx,const struct handle *h,const struct location *loc); -extern int netlink_get_table (struct netlink_ctx *ctx,const struct handle *h, -const struct location *loc);extern int netlink_list_table (struct netlink_ctx *ctx,const struct handle *h,const struct location *loc); extern int netlink_flush_table(struct netlink_ctx *ctx, const struct handle *h,
src/netlink.c +0 -18
@@ -936,24 +936,6 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h,return 0 ; } -int netlink_get_table (struct netlink_ctx *ctx,const struct handle *h, -const struct location *loc) -{ -struct nft_table *nlt; -int err; - - nlt =alloc_nft_table (h); - err =mnl_nft_table_get (nf_sock, nlt,0 ); -nft_table_free (nlt); - -if (err <0 ) -return netlink_io_error (ctx, loc, -"Could not receive table from kernel: %s" , -strerror (errno)); -return err; -} - -int netlink_list_table (struct netlink_ctx *ctx,const struct handle *h,const struct location *loc) {
Signature · 1 line
1.9.3