summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-14 01:24:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-14 01:24:49 +0000
commit8a6c138f1411b66ad532d9285b53e1907b9ae642 (patch)
tree786bdff3760b79cd77c99fff5421a01523a988f1 /read.c
parentf23ef2791d6fed38e2418e7816d449e955da3808 (diff)
downloadmandoc-8a6c138f1411b66ad532d9285b53e1907b9ae642.tar.gz
Delete the function mparse_readmem() that has been unused for almost a
decade but regularly makes maintenance harder. Mandoc is not a general-purpose library, and being as pluggable as possible is not among the goals of the project.
Diffstat (limited to 'read.c')
-rw-r--r--read.c13
1 files changed, 0 insertions, 13 deletions
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.