From 74a8854c2f3184e84d0e64c32cd991520a451a92 Mon Sep 17 00:00:00 2001 From: Shan Wei Date: Mon, 21 Apr 2008 10:23:38 +0000 Subject: iptables-save:remove unnecessary code. The following code is never be used. It should be removed. Signed-off-by: Shan Wei --- iptables-save.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/iptables-save.c b/iptables-save.c index 51127cde..e8bdda2b 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -106,19 +106,6 @@ static void print_proto(u_int16_t proto, int invert) } } -#if 0 -static int non_zero(const void *ptr, size_t size) -{ - unsigned int i; - - for (i = 0; i < size; i++) - if (((char *)ptr)[i]) - return 0; - - return 1; -} -#endif - static int print_match(const struct ipt_entry_match *e, const struct ipt_ip *ip) { -- cgit v1.2.3