source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: Delete the function mparse_readmem() that has been unused for
Date: Thu, 13 Dec 2018 20:25:19 -0500 (EST)	[thread overview]
Message-ID: <05f5def797aa20f6@fantadrom.bsd.lv> (raw)

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

                 reply	other threads:[~2018-12-14  1:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05f5def797aa20f6@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).