From c3c95ab2187037793f9a827a8930eb4080337487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sat, 11 Feb 2012 02:34:18 +0100 Subject: Removed slideshow support --- util.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 83b26d9..c34146b 100644 --- a/util.c +++ b/util.c @@ -134,15 +134,6 @@ void size_readable(float *size, const char **unit) { *unit = units[MIN(i, ARRLEN(units) - 1)]; } -void time_readable(float *time, const char **unit) { - const char *units[] = { "s", "m", "h" }; - int i; - - for (i = 0; i < ARRLEN(units) && *time >= 60.0; i++) - *time /= 60.0; - *unit = units[MIN(i, ARRLEN(units) - 1)]; -} - char* absolute_path(const char *filename) { size_t len; const char *basename; -- cgit v1.2.3