* [nft PATCH] Remove unused function netlink_get_table
@ 2014-08-11 2:37 Yanchuan Nian
0 siblings, 0 replies; only message in thread
From: Yanchuan Nian @ 2014-08-11 2:37 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, Yanchuan Nian
netlink_get_table is defined but not used anywhere. Just remove it.
Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
---
include/netlink.h | 2 --
src/netlink.c | 18 ------------------
2 files changed, 20 deletions(-)
diff --git a/include/netlink.h b/include/netlink.h
index af5dcd9..29cd45c 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -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,
diff --git a/src/netlink.c b/src/netlink.c
index dc7a7c4..5ada2fd 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -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)
{
--
1.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-11 2:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 2:37 [nft PATCH] Remove unused function netlink_get_table Yanchuan Nian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).