diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-07 19:39:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-07 19:39:18 +0000 |
commit | 167827a4a66344e325a3f8157491723f307a1543 (patch) | |
tree | d766606f6fd7a7cc12ef66caab5d4e55fdbb5662 /usr.bin/mandoc | |
parent | 93e02160074c79bbdbf624b8470726ad81b47952 (diff) |
garbage collect unused enum member EQN_ROOT
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mandoc.h | 3 | ||||
-rw-r--r-- | usr.bin/mandoc/tree.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index 53e347a08b3..b78d886dcb7 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.h,v 1.185 2017/07/06 22:58:44 schwarze Exp $ */ +/* $OpenBSD: mandoc.h,v 1.186 2017/07/07 19:39:17 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -334,7 +334,6 @@ struct tbl_span { }; enum eqn_boxt { - EQN_ROOT, /* root of parse tree */ EQN_TEXT, /* text (number, variable, whatever) */ EQN_SUBEXPR, /* nested `eqn' subexpression */ EQN_LIST, /* list (braces, etc.) */ diff --git a/usr.bin/mandoc/tree.c b/usr.bin/mandoc/tree.c index 6d61bff19e1..b217ad87078 100644 --- a/usr.bin/mandoc/tree.c +++ b/usr.bin/mandoc/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.42 2017/07/05 15:03:20 schwarze Exp $ */ +/* $OpenBSD: tree.c,v 1.43 2017/07/07 19:39:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -311,9 +311,6 @@ print_box(const struct eqn_box *ep, int indent) t = NULL; switch (ep->type) { - case EQN_ROOT: - t = "eqn-root"; - break; case EQN_LIST: t = "eqn-list"; break; |