From 626bb3e25a4053c5289421c43cd3f3d3b337fb3a Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Mon, 4 Jul 2022 09:29:57 +0200 Subject: [PATCH] cleanup --- src/main/java/net/horizoncode/sysbackup/tasks/TaskBuilder.java | 3 --- .../net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java | 3 +-- .../java/net/horizoncode/sysbackup/tasks/impl/VacuumTask.java | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/net/horizoncode/sysbackup/tasks/TaskBuilder.java b/src/main/java/net/horizoncode/sysbackup/tasks/TaskBuilder.java index 2d2336f..ae4e965 100644 --- a/src/main/java/net/horizoncode/sysbackup/tasks/TaskBuilder.java +++ b/src/main/java/net/horizoncode/sysbackup/tasks/TaskBuilder.java @@ -11,10 +11,7 @@ import org.tomlj.TomlArray; import java.io.File; import java.text.SimpleDateFormat; -import java.time.temporal.ChronoUnit; -import java.util.Arrays; import java.util.Date; -import java.util.Objects; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; import java.util.stream.IntStream; diff --git a/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java b/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java index 0f55145..9b26617 100644 --- a/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java +++ b/src/main/java/net/horizoncode/sysbackup/tasks/impl/FileSystemTask.java @@ -14,9 +14,8 @@ import java.nio.file.Paths; public class FileSystemTask extends Task { private final File target; - private File outputZipFile; - private final ThreadPool threadPool; + private File outputZipFile; public FileSystemTask(String folderOrFilePath, File outputZipFile) { this.threadPool = new ThreadPool(3, 10); diff --git a/src/main/java/net/horizoncode/sysbackup/tasks/impl/VacuumTask.java b/src/main/java/net/horizoncode/sysbackup/tasks/impl/VacuumTask.java index ffbde94..5505a64 100644 --- a/src/main/java/net/horizoncode/sysbackup/tasks/impl/VacuumTask.java +++ b/src/main/java/net/horizoncode/sysbackup/tasks/impl/VacuumTask.java @@ -2,7 +2,6 @@ package net.horizoncode.sysbackup.tasks.impl; import lombok.Getter; import net.horizoncode.sysbackup.tasks.Task; -import org.apache.commons.io.FileUtils; import java.io.File; import java.util.Arrays;