The branch, master has been updated
via ebe7bd7c8b4f3d703064b3d8b2b5ad8dd01e9e62 (commit)
from 683ca270d4b3ffc64a0d9cb86161dfb48a7fe0ca (commit)
- Log -----------------------------------------------------------------
commit ebe7bd7c8b4f3d703064b3d8b2b5ad8dd01e9e62
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Remove unused log functions.
---
log.c | 41 +----------------------------------------
tmux.h | 3 ---
2 files changed, 1 insertions(+), 43 deletions(-)
diff --git a/log.c b/log.c
index dbf9ee1..71cedde 100644
--- a/log.c
+++ b/log.c
@@ -41,7 +41,7 @@ __dead void log_vfatal(const char *, va_list);
void
log_event_cb(unused int severity, const char *msg)
{
- log_warnx("%s", msg);
+ log_debug("%s", msg);
}
/* Open logging to file. */
@@ -86,45 +86,6 @@ log_vwrite(const char *msg, va_list ap)
free(fmt);
}
-/* Log a warning with error string. */
-void printflike1
-log_warn(const char *msg, ...)
-{
- va_list ap;
- char *fmt;
-
- va_start(ap, msg);
- if (asprintf(&fmt, "%s: %s", msg, strerror(errno)) == -1)
- exit(1);
- log_vwrite(fmt, ap);
- free(fmt);
- va_end(ap);
-}
-
-/* Log a warning. */
-void printflike1
-log_warnx(const char *msg, ...)
-{
- va_list ap;
-
- va_start(ap, msg);
- log_vwrite(msg, ap);
- va_end(ap);
-}
-
-/* Log an informational message. */
-void printflike1
-log_info(const char *msg, ...)
-{
- va_list ap;
-
- if (log_level > -1) {
- va_start(ap, msg);
- log_vwrite(msg, ap);
- va_end(ap);
- }
-}
-
/* Log a debug message. */
void printflike1
log_debug(const char *msg, ...)
diff --git a/tmux.h b/tmux.h
index fe6bad2..638ee3b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -2342,9 +2342,6 @@ struct event_base *osdep_event_init(void);
/* log.c */
void log_open(int, const char *);
void log_close(void);
-void printflike1 log_warn(const char *, ...);
-void printflike1 log_warnx(const char *, ...);
-void printflike1 log_info(const char *, ...);
void printflike1 log_debug(const char *, ...);
void printflike1 log_debug2(const char *, ...);
__dead void printflike1 log_fatal(const char *, ...);
-----------------------------------------------------------------------
Summary of changes:
log.c | 41 +----------------------------------------
tmux.h | 3 ---
2 files changed, 1 insertions(+), 43 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs