1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

windows.c: remove duplicate code in ui_get_idle_time

This commit is contained in:
Dmitry Podgorny 2013-01-04 09:54:17 +02:00
parent 7ed821c0d6
commit 7ee113e687

View File

@ -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