aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-11 02:34:18 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-11 02:34:18 +0100
commitc3c95ab2187037793f9a827a8930eb4080337487 (patch)
tree8aa14f0152106354355001e078cea5c0bd46adee /util.c
parentd2ec67e3311d0f20376f2de3e9b712e4adb0e878 (diff)
downloadnsxiv-c3c95ab2187037793f9a827a8930eb4080337487.tar.zst
Removed slideshow support
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 0 insertions, 9 deletions
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;