source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: Delete the function mparse_readmem() that has been unused for
@ 2018-12-14  1:25 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-12-14  1:25 UTC (permalink / raw)
  To: source

Log Message:
-----------
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.

Modified Files:
--------------
    mandoc:
        mandoc_parse.h
        read.c

Revision Data
-------------
Index: mandoc_parse.h
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc_parse.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lmandoc_parse.h -Lmandoc_parse.h -u -p -r1.2 -r1.3
--- mandoc_parse.h
+++ 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 **);
Index: read.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/read.c,v
retrieving revision 1.203
retrieving revision 1.204
diff -Lread.c -Lread.c -u -p -r1.203 -r1.204
--- read.c
+++ read.c
@@ -579,19 +579,6 @@ mparse_parse_buffer(struct mparse *curp,
 		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.
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-14  1:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14  1:25 mandoc: Delete the function mparse_readmem() that has been unused for schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).