From 801cd9f6d112aa8153176ccb68d3342871654978 Mon Sep 17 00:00:00 2001 From: JKetelaar Date: Fri, 3 Feb 2017 21:02:31 +0100 Subject: [PATCH] [TASK] Removed invalid cache clearing --- src/main/java/org/parabot/core/Core.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/parabot/core/Core.java b/src/main/java/org/parabot/core/Core.java index ff70069..240b8be 100644 --- a/src/main/java/org/parabot/core/Core.java +++ b/src/main/java/org/parabot/core/Core.java @@ -210,17 +210,8 @@ public class Core { * Method that removes the cache contents after 3 days */ private static void validateCache() { - File[] cache = Directories.getCachePath().listFiles(); - - if (cache != null) { - for (File f : cache) { - long age = new Date().getTime() - f.lastModified(); - - if (age > 3 * 24 * 60 * 60 * 1000) { - f.delete(); - } - } - } + // Already handled by Directories initiating + // Method will be used once BDN V3 has a functionality for this } public static void downloadNewVersion() {