summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 21:31:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 21:31:23 +0000
commit4b3a9caedf7632dd837b5d786c41d0d124c06ee4 (patch)
tree531792d234b46886165afa0ee0793e806c4e1f79 /html.c
parenteec9b5ae7a9d9378856fdb038bf9c588af68f047 (diff)
downloadmandoc-4b3a9caedf7632dd837b5d786c41d0d124c06ee4.tar.gz
Remove all references to ESCAPE_PREDEF, which is now not exposed passed
the libroff point. This clears up a nice chunk of code.
Diffstat (limited to 'html.c')
-rw-r--r--html.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/html.c b/html.c
index 9a8ec3e3..e74da382 100644
--- a/html.c
+++ b/html.c
@@ -109,7 +109,6 @@ static const char *const roffscales[SCALE_MAX] = {
static void bufncat(struct html *, const char *, size_t);
static void print_spec(struct html *, const char *, size_t);
-static void print_res(struct html *, const char *, size_t);
static void print_ctag(struct html *, enum htmltag);
static int print_encode(struct html *, const char *, int);
static void print_metaf(struct html *, enum mandoc_esc);
@@ -238,25 +237,6 @@ print_spec(struct html *h, const char *p, size_t len)
fwrite(rhs, 1, sz, stdout);
}
-
-static void
-print_res(struct html *h, const char *p, size_t len)
-{
- int cp;
- const char *rhs;
- size_t sz;
-
- if ((cp = mchars_res2cp(h->symtab, p, len)) > 0) {
- printf("&#%d;", cp);
- return;
- } else if (-1 == cp)
- return;
-
- if (NULL != (rhs = mchars_res2str(h->symtab, p, len, &sz)))
- fwrite(rhs, 1, sz, stdout);
-}
-
-
static void
print_metaf(struct html *h, enum mandoc_esc deco)
{
@@ -321,8 +301,6 @@ html_strlen(const char *cp)
/* FALLTHROUGH */
case (ESCAPE_NUMBERED):
/* FALLTHROUGH */
- case (ESCAPE_PREDEF):
- /* FALLTHROUGH */
case (ESCAPE_SPECIAL):
sz++;
break;
@@ -388,9 +366,6 @@ print_encode(struct html *h, const char *p, int norecurse)
if ('\0' != c)
putchar(c);
break;
- case (ESCAPE_PREDEF):
- print_res(h, seq, len);
- break;
case (ESCAPE_SPECIAL):
print_spec(h, seq, len);
break;