diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2017-07-31 16:38:34 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2017-07-31 16:38:34 +0000 |
commit | 9fa098539eb4e82ad020053146b518e869de9891 (patch) | |
tree | c9e1443faa5845e77a06fdb49bdb32d7f3ea214e | |
parent | 8d856aada12beb1685e071031425958cbb43133f (diff) |
cmd_dump() is unused
spotted by deraadt
-rw-r--r-- | usr.sbin/smtpd/parser.c | 16 |
1 files changed, 1 insertions, 15 deletions
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 <eric@openbsd.org> @@ -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) { |