diff --git a/src/main/java/net/ripe/rpki/rsyncit/rsync/RsyncWriter.java b/src/main/java/net/ripe/rpki/rsyncit/rsync/RsyncWriter.java index 4362662..b1b25b1 100644 --- a/src/main/java/net/ripe/rpki/rsyncit/rsync/RsyncWriter.java +++ b/src/main/java/net/ripe/rpki/rsyncit/rsync/RsyncWriter.java @@ -10,7 +10,6 @@ import java.io.UncheckedIOException; import java.net.URI; import java.nio.file.Files; -import java.nio.file.LinkOption; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.FileTime; @@ -20,9 +19,7 @@ import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.*; -import java.util.concurrent.Callable; import java.util.concurrent.ForkJoinPool; -import java.util.function.Consumer; import java.util.regex.Pattern; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -232,18 +229,6 @@ void cleanupOldTargetDirectories(Instant now, Path baseDirectory) throws IOExcep } } - public interface IOExceptionThrowingCallable { - T call() throws IOException; - } - - static T withUncheckedIOException(IOExceptionThrowingCallable callable) { - try { - return callable.call(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - } - private FileTime getLastModifiedTime(Path path) { try { return Files.getLastModifiedTime(path);