From bce55916b51ec1a4c23322781e3b0c698ecc9561 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 16 Aug 2017 19:48:13 +0530 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/statement.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/statement.c') 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); -} -- cgit v1.2.3