From 0ca4962fdcdee1151bf78c0961745c567d1adb6e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 15 Jun 2009 10:02:52 +0000 Subject: Removed mdoc_nwarn (not being used anywhere). --- libmdoc.h | 2 -- mdoc.c | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/libmdoc.h b/libmdoc.h index 8e5eee8d..a989f951 100644 --- a/libmdoc.h +++ b/libmdoc.h @@ -69,8 +69,6 @@ void mdoc_vmsg(struct mdoc *, int, int, const char *, ...); int mdoc_verr(struct mdoc *, int, int, const char *, ...); -int mdoc_nwarn(struct mdoc *, const struct mdoc_node *, - enum mdoc_warn, const char *, ...); int mdoc_nerr(struct mdoc *, const struct mdoc_node *, const char *, ...); int mdoc_warn(struct mdoc *, enum mdoc_warn, const char *, ...); diff --git a/mdoc.c b/mdoc.c index 9e5bf545..e616150c 100644 --- a/mdoc.c +++ b/mdoc.c @@ -292,23 +292,6 @@ mdoc_vwarn(struct mdoc *mdoc, int ln, int pos, } -int -mdoc_nwarn(struct mdoc *mdoc, const struct mdoc_node *node, enum mdoc_warn type, - const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - if (NULL == mdoc->cb.mdoc_warn) - return(0); - - va_start(ap, fmt); - (void)vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - return((*mdoc->cb.mdoc_warn)(mdoc->data, node->line, node->pos, type, - buf)); -} - int mdoc_nerr(struct mdoc *mdoc, const struct mdoc_node *node, const char *fmt, ...) { -- cgit