diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-12 20:07:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-12 20:07:04 +0000 |
commit | e9f5e91e7380411d0e64bbe973877e3b72acd928 (patch) | |
tree | ad6ae8b25dd4d8a08203dde4525d0d7e8878ddb6 | |
parent | 38745750a7f599dc603af3810aca8ebb00c02e62 (diff) | |
download | mandoc-e9f5e91e7380411d0e64bbe973877e3b72acd928.tar.gz |
Removed superfluous FIXMEs in mdoc_term.c.
-rw-r--r-- | mdoc_term.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 285b21a9..4873ecb5 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1070,12 +1070,9 @@ termp_rv_pre(DECL_ARGS) { int i; - /* FIXME: mandated by parser. */ - - if (-1 == (i = arg_getattr(MDOC_Std, node))) - errx(1, "expected -std argument"); - if (1 != node->args->argv[i].sz) - errx(1, "expected -std argument"); + i = arg_getattr(MDOC_Std, node); + assert(-1 != i); + assert(node->args->argv[i].sz); term_newln(p); term_word(p, "The"); @@ -1105,12 +1102,9 @@ termp_ex_pre(DECL_ARGS) { int i; - /* FIXME: mandated by parser? */ - - if (-1 == (i = arg_getattr(MDOC_Std, node))) - errx(1, "expected -std argument"); - if (1 != node->args->argv[i].sz) - errx(1, "expected -std argument"); + i = arg_getattr(MDOC_Std, node); + assert(-1 != i); + assert(node->args->argv[i].sz); term_word(p, "The"); p->flags |= ttypes[TTYPE_PROG]; |