summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-23 15:35:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-23 15:35:59 +0000
commit48b896d8e54fb00900d8be7283d92985cdcdb0f5 (patch)
tree1145ffb9565df6b487447ba596a25709137a72dc
parent748d0319758b319897e6839169f9b45e27d030da (diff)
downloadmandoc-48b896d8e54fb00900d8be7283d92985cdcdb0f5.tar.gz
Get rid of two empty wrapper functions. No functional change.
-rw-r--r--libman.h1
-rw-r--r--libmdoc.h1
-rw-r--r--man.c7
-rw-r--r--man_macro.c3
-rw-r--r--mdoc.c7
-rw-r--r--mdoc_macro.c2
6 files changed, 2 insertions, 19 deletions
diff --git a/libman.h b/libman.h
index 6f8589e6..3ad58d19 100644
--- a/libman.h
+++ b/libman.h
@@ -37,7 +37,6 @@ extern const struct man_macro *const man_macros;
__BEGIN_DECLS
int man_hash_find(const char *);
-void man_macroend(struct roff_man *);
void man_valid_post(struct roff_man *);
void man_unscope(struct roff_man *, const struct roff_node *);
diff --git a/libmdoc.h b/libmdoc.h
index 9d8b1b32..7c178104 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -84,7 +84,6 @@ void mdoc_argv(struct roff_man *, int, int,
struct mdoc_arg **, int *, char *);
enum margserr mdoc_args(struct roff_man *, int,
int *, char *, int, char **);
-void mdoc_macroend(struct roff_man *);
enum mdelim mdoc_isdelim(const char *);
__END_DECLS
diff --git a/man.c b/man.c
index 71d540f2..5813ac92 100644
--- a/man.c
+++ b/man.c
@@ -55,13 +55,6 @@ static int man_ptext(struct roff_man *, int, char *, int);
static int man_pmacro(struct roff_man *, int, char *, int);
-void
-man_endparse(struct roff_man *man)
-{
-
- man_macroend(man);
-}
-
int
man_parseln(struct roff_man *man, int ln, char *buf, int offs)
{
diff --git a/man_macro.c b/man_macro.c
index d540fc4a..4ba357b5 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -404,9 +404,8 @@ in_line_eoln(MACRO_PROT_ARGS)
man_valid_post(man);
}
-
void
-man_macroend(struct roff_man *man)
+man_endparse(struct roff_man *man)
{
man_unscope(man, man->first);
diff --git a/mdoc.c b/mdoc.c
index aed7218a..25b6f0a5 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -89,13 +89,6 @@ static int mdoc_ptext(struct roff_man *, int, char *, int);
static int mdoc_pmacro(struct roff_man *, int, char *, int);
-void
-mdoc_endparse(struct roff_man *mdoc)
-{
-
- mdoc_macroend(mdoc);
-}
-
/*
* Main parse routine. Parses a single line -- really just hands off to
* the macro (mdoc_pmacro()) or text parser (mdoc_ptext()).
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 05234250..115fefe8 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -210,7 +210,7 @@ const struct mdoc_macro * const mdoc_macros = __mdoc_macros;
* are errors.
*/
void
-mdoc_macroend(struct roff_man *mdoc)
+mdoc_endparse(struct roff_man *mdoc)
{
struct roff_node *n;