aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit0dd2eb826a1c733669d3ad1d9ef31b4e90ddb3f0 (patch)
treef8a489223836270cc37ed5f1af9e55b13a54685a /read.c
parent437eb74af037fff6e93890f2a4f81426d7142fab (diff)
downloadmandoc-0dd2eb826a1c733669d3ad1d9ef31b4e90ddb3f0.tar.gz
mandoc-0dd2eb826a1c733669d3ad1d9ef31b4e90ddb3f0.tar.zst
mandoc-0dd2eb826a1c733669d3ad1d9ef31b4e90ddb3f0.zip
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.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/read.c b/read.c
index 81a7c416..cd0e027e 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.203 2018/12/14 01:18:26 schwarze Exp $ */
+/* $Id: read.c,v 1.204 2018/12/14 01:24:49 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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.