From 7ed821c0d6d32daf39cbeee82a120a61ae1c25be Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 4 Jan 2013 09:46:47 +0200 Subject: windows.c: remove useless printf --- src/windows.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/windows.c') diff --git a/src/windows.c b/src/windows.c index b8b12f59..54a679a1 100644 --- a/src/windows.c +++ b/src/windows.c @@ -189,7 +189,6 @@ _ui_draw_win_title(void) // draw if change if (g_strcmp0(win_title, new_win_title) != 0) { - printf(new_win_title); if (win_title != NULL) { free(win_title); } -- cgit 1.4.1-2-gfad0 From 7ee113e68779a708612b77d0631c1dcfd06abb50 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 4 Jan 2013 09:54:17 +0200 Subject: windows.c: remove duplicate code in ui_get_idle_time --- src/windows.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/windows.c') diff --git a/src/windows.c b/src/windows.c index 54a679a1..e81fcaaf 100644 --- a/src/windows.c +++ b/src/windows.c @@ -206,16 +206,11 @@ ui_get_idle_time(void) unsigned long result = info->idle; XFree(info); return result; - } else { - gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL); - unsigned long ms_elapsed = seconds_elapsed * 1000.0; - return ms_elapsed; } -#else +#endif gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL); unsigned long ms_elapsed = seconds_elapsed * 1000.0; return ms_elapsed; -#endif } void -- cgit 1.4.1-2-gfad0