diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2017-08-16 19:48:13 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-17 12:48:20 +0200 |
commit | bce55916b51ec1a4c23322781e3b0c698ecc9561 (patch) | |
tree | 695582fe195eee42f4e7ac56f296eba8bec8c53b /src/statement.c | |
parent | 96c1346d5c230d2c381b9c1c9e8e2b30d3915ea1 (diff) |
src: Remove xt_stmt_() functions.
Remove functions xt_stmt_alloc(), xt_stmt_release(), xt_stmt_xlate(),
xt_stmt_print(), xt_stmt_destroy() as they are not used. Similarly,
remove structure xt_stmt_ops.
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/statement.c')
-rw-r--r-- | src/statement.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/statement.c b/src/statement.c index 0ce875eb..58f8aaf6 100644 --- a/src/statement.c +++ b/src/statement.c @@ -689,26 +689,3 @@ struct stmt *fwd_stmt_alloc(const struct location *loc) return stmt_alloc(loc, &fwd_stmt_ops); } -static void xt_stmt_print(const struct stmt *stmt, struct output_ctx *octx) -{ - xt_stmt_xlate(stmt); -} - -static void xt_stmt_destroy(struct stmt *stmt) -{ - xfree(stmt->xt.name); - xfree(stmt->xt.opts); - xt_stmt_release(stmt); -} - -static const struct stmt_ops xt_stmt_ops = { - .type = STMT_XT, - .name = "xt", - .print = xt_stmt_print, - .destroy = xt_stmt_destroy, -}; - -struct stmt *xt_stmt_alloc(const struct location *loc) -{ - return stmt_alloc(loc, &xt_stmt_ops); -} |