summaryrefslogtreecommitdiffstats
path: root/makewhatis.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 02:47:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 02:47:17 +0000
commit275f8a2331ee97d749bb993340b12e3651e41312 (patch)
treecb230935b6e27ab391b065ee0e3f806a2b8f1b2b /makewhatis.c
parent5163e512d087eaac01dd7f4eea9a4f376a52af49 (diff)
downloadmandoc-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).
Diffstat (limited to 'makewhatis.c')
-rw-r--r--makewhatis.c42
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;
}