From 7ee113e68779a708612b77d0631c1dcfd06abb50 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 4 Jan 2013 09:54:17 +0200 Subject: [PATCH] windows.c: remove duplicate code in ui_get_idle_time --- src/windows.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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