diff options
-rw-r--r-- | chars.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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; |