diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-15 02:47:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-15 02:47:17 +0000 |
commit | 275f8a2331ee97d749bb993340b12e3651e41312 (patch) | |
tree | cb230935b6e27ab391b065ee0e3f806a2b8f1b2b | |
parent | 5163e512d087eaac01dd7f4eea9a4f376a52af49 (diff) | |
download | mandoc-275f8a2331ee97d749bb993340b12e3651e41312.tar.gz |
Get rid of an "#if 0" that I don't anticipate being fixed ever (nor does
it really need to be fixed, anyway).
-rw-r--r-- | makewhatis.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/makewhatis.c b/makewhatis.c index 3ff8118e..8d23635a 100644 --- a/makewhatis.c +++ b/makewhatis.c @@ -468,48 +468,6 @@ dbt_appendb(DBT *key, size_t *ksz, const void *cp, size_t sz) key->data = mandoc_realloc(key->data, *ksz); } -#if 0 - dstp = key->data + (int)key->size; - - while (NULL != (endp = memchr(cp, '\\', sz))) { - ssz = endp - cp; - memcpy(dstp, cp, ssz); - - dstp += ssz; - key->size += ssz; - sz -= ssz; - - cp = endp++; - /* FIXME: expects nil-terminated string! */ - esc = mandoc_escape((const char **)&endp, NULL, NULL); - - switch (esc) { - case (ESCAPE_ERROR): - /* Nil-terminate this point. */ - memcpy(dstp, "", 1); - key->size++; - return; - case (ESCAPE_PREDEF): - /* FALLTHROUGH */ - case (ESCAPE_SPECIAL): - break; - default: - sz -= endp - cp; - cp = endp; - continue; - } - - ssz = endp - cp; - memcpy(dstp, cp, ssz); - - dstp += ssz; - key->size += ssz; - sz -= ssz; - - cp = endp; - } -#endif - memcpy(key->data + (int)key->size, cp, sz); key->size += sz; } |