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 | 0dd2eb826a1c733669d3ad1d9ef31b4e90ddb3f0 (patch) | |
tree | f8a489223836270cc37ed5f1af9e55b13a54685a | |
parent | 437eb74af037fff6e93890f2a4f81426d7142fab (diff) | |
download | mandoc-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.
-rw-r--r-- | mandoc_parse.h | 4 | ||||
-rw-r--r-- | read.c | 15 |
2 files changed, 2 insertions, 17 deletions
diff --git a/mandoc_parse.h b/mandoc_parse.h index 7d906619..5ad0f07b 100644 --- a/mandoc_parse.h +++ b/mandoc_parse.h @@ -1,4 +1,4 @@ -/* $Id: mandoc_parse.h,v 1.2 2018/12/14 01:18:26 schwarze Exp $ */ +/* $Id: mandoc_parse.h,v 1.3 2018/12/14 01:24:49 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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 **); @@ -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. |