diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 15:44:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 15:44:21 +0200 |
commit | 36470979d9f3518217fc26987558dafb3ab36f5c (patch) | |
tree | 5ebeb5b306faafca9c52f1696f4be9851b4fa9b1 /src/main.c | |
parent | 9526f180e6f55654c99bd8d66c71612a32b0fb4e (diff) | |
download | mpd-36470979d9f3518217fc26987558dafb3ab36f5c.tar.gz mpd-36470979d9f3518217fc26987558dafb3ab36f5c.tar.xz mpd-36470979d9f3518217fc26987558dafb3ab36f5c.zip |
removed the debugging function D()
gdb is for debugging. We don't need D() calls littered all over.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main.c b/src/main.c index 28cce938f..f6043d48a 100644 --- a/src/main.c +++ b/src/main.c @@ -67,7 +67,6 @@ static void error_callback(mpd_unused mpdclient_t *c, gint error, const gchar *msg) { error = error & 0xFF; - D("Error [%d:%d]> \"%s\"\n", error, GET_ACK_ERROR_CODE(error), msg); switch (error) { case MPD_ERROR_CONNPORT: case MPD_ERROR_NORESPONSE: @@ -138,7 +137,6 @@ catch_sigint(mpd_unused int sig) static void catch_sigcont(mpd_unused int sig) { - D("catch_sigcont()\n"); #ifdef ENABLE_RAW_MODE reset_prog_mode(); /* restore tty modes */ refresh(); @@ -179,24 +177,6 @@ catch_sigwinch(mpd_unused int sig) timer_sigwinch_id = g_timeout_add(100, timer_sigwinch, NULL); } -#ifndef NDEBUG -void -D(const char *format, ...) -{ - if( options.debug ) - { - gchar *msg; - va_list ap; - - va_start(ap,format); - msg = g_strdup_vprintf(format,ap); - va_end(ap); - fprintf(stderr, "%s", msg); - g_free(msg); - } -} -#endif - static gboolean timer_mpd_update(gpointer data); @@ -351,7 +331,6 @@ main(int argc, const char *argv[]) setlocale(LC_CTYPE,""); /* initialize charset conversions */ charset_init(g_get_charset(&charset)); - D("charset: %s\n", charset); #endif /* initialize i18n support */ |