summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandoc_parse.h2
-rw-r--r--read.c13
2 files changed, 0 insertions, 15 deletions
diff --git a/mandoc_parse.h b/mandoc_parse.h
index 130a59c6..ee9bfd0b 100644
--- a/mandoc_parse.h
+++ b/mandoc_parse.h
@@ -38,8 +38,6 @@ void mparse_copy(const struct mparse *);
void mparse_free(struct mparse *);
int mparse_open(struct mparse *, const char *);
void mparse_readfd(struct mparse *, int, const char *);
-enum mandoclevel mparse_readmem(struct mparse *, void *, size_t,
- const char *);
void mparse_reset(struct mparse *);
void mparse_result(struct mparse *,
struct roff_man **, char **);
diff --git a/read.c b/read.c
index 530a1551..be2f1369 100644
--- a/read.c
+++ b/read.c
@@ -579,19 +579,6 @@ mparse_parse_buffer(struct mparse *curp, struct buf blk, const char *file)
mandoc_msg_setinfilename(svfile);
}
-enum mandoclevel
-mparse_readmem(struct mparse *curp, void *buf, size_t len,
- const char *file)
-{
- struct buf blk;
-
- blk.buf = buf;
- blk.sz = len;
-
- mparse_parse_buffer(curp, blk, file);
- return mandoc_msg_getrc();
-}
-
/*
* Read the whole file into memory and call the parsers.
* Called recursively when an .so request is encountered.