diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 01:24:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 01:24:49 +0000 |
commit | 8a6c138f1411b66ad532d9285b53e1907b9ae642 (patch) | |
tree | 786bdff3760b79cd77c99fff5421a01523a988f1 /read.c | |
parent | f23ef2791d6fed38e2418e7816d449e955da3808 (diff) | |
download | mandoc-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.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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. |