diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:02:52 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:02:52 +0000 |
commit | 0ca4962fdcdee1151bf78c0961745c567d1adb6e (patch) | |
tree | 70c3748faeff0760a04b801f94e097ca5f21fe62 | |
parent | 6750956aa375ffc51c5434356b28b9fb570bb1dd (diff) | |
download | mandoc-0ca4962fdcdee1151bf78c0961745c567d1adb6e.tar.gz |
Removed mdoc_nwarn (not being used anywhere).
-rw-r--r-- | libmdoc.h | 2 | ||||
-rw-r--r-- | mdoc.c | 17 |
2 files changed, 0 insertions, 19 deletions
@@ -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 *, ...); @@ -293,23 +293,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, ...) { char buf[256]; |