From 9fa098539eb4e82ad020053146b518e869de9891 Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Mon, 31 Jul 2017 16:38:34 +0000 Subject: cmd_dump() is unused spotted by deraadt --- usr.sbin/smtpd/parser.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'usr.sbin/smtpd') diff --git a/usr.sbin/smtpd/parser.c b/usr.sbin/smtpd/parser.c index bb019c13cbe..df90e50839e 100644 --- a/usr.sbin/smtpd/parser.c +++ b/usr.sbin/smtpd/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.40 2015/01/09 08:28:02 gilles Exp $ */ +/* $OpenBSD: parser.c,v 1.41 2017/07/31 16:38:33 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -117,20 +117,6 @@ cmd_install(const char *pattern, int (*cmd)(int, struct parameter*)) return (n); } -static void -cmd_dump(struct node *node, int depth) -{ - struct node *n; - int i; - - for(i = 0; i < depth; i++) - printf(" "); - printf("%s\n", node->token ? node->token : ""); - - TAILQ_FOREACH(n, &node->children, entry) - cmd_dump(n, depth + 1); -} - static int cmd_check(const char *str, struct node *node, struct parameter *res) { -- cgit v1.2.3