summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-01-28 06:04:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-01-28 06:04:59 +0000
commit68432d6ea9e0e1a89eb79e9b1e957ffd93b49b72 (patch)
tree3f6baba735aea362df529d595e4a581280839875
parent2766352e79d087ab9cebab45f5737ede5524331b (diff)
downloadmandoc-68432d6ea9e0e1a89eb79e9b1e957ffd93b49b72.tar.gz
mandoc-68432d6ea9e0e1a89eb79e9b1e957ffd93b49b72.tar.zst
mandoc-68432d6ea9e0e1a89eb79e9b1e957ffd93b49b72.zip
Removed superfluous lookahead block in chars.c.
-rw-r--r--chars.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/chars.c b/chars.c
index 034f24ce..c6cf693f 100644
--- a/chars.c
+++ b/chars.c
@@ -1,4 +1,4 @@
-/* $Id: chars.c,v 1.15 2010/01/05 19:51:10 kristaps Exp $ */
+/* $Id: chars.c,v 1.16 2010/01/28 06:04:59 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -166,18 +166,6 @@ find(struct tbl *tab, const char *p, size_t sz, size_t *rsz, int type)
if (NULL == (pp = htab[hash]))
return(NULL);
- if (NULL == pp->next) {
- if ( ! match(pp, p, sz, type))
- return(NULL);
-
- if (CHARS_HTML == tab->type) {
- *rsz = pp->htmlsz;
- return(pp->html);
- }
- *rsz = pp->asciisz;
- return(pp->ascii);
- }
-
for (prev = NULL; pp; pp = pp->next) {
if ( ! match(pp, p, sz, type)) {
prev = pp;