From e3326a4e34a9ac8c23876b3c102e7afd7a57bf4e Mon Sep 17 00:00:00 2001 From: Castulo Martinez Date: Thu, 21 May 2020 12:15:33 -0700 Subject: [PATCH] Removing dead code in clean.c Signed-off-by: Castulo Martinez --- src/cmds/clean.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/cmds/clean.c b/src/cmds/clean.c index 5b2c1578..0df2233e 100644 --- a/src/cmds/clean.c +++ b/src/cmds/clean.c @@ -59,8 +59,6 @@ int clean_get_stats(void) return stats.files_removed; } -static struct timespec now; - static const struct option prog_opts[] = { { "help", no_argument, 0, 'h' }, { "all", no_argument, 0, FLAG_ALL }, @@ -435,13 +433,6 @@ enum swupd_code clean_statedir(bool dry_run, bool all) enum swupd_code ret; char *path = NULL; - if (!all) { - if (clock_gettime(CLOCK_REALTIME, &now)) { - error("couldn't read current time to decide what files to clean\n\n"); - return SWUPD_TIME_UNKNOWN; - } - } - path = statedir_get_staged_dir(); ret = remove_if(path, dry_run, is_fullfile); FREE(path);