From e796974e296c92fd831f2cc2fb24e3b352d1e734 Mon Sep 17 00:00:00 2001 From: Ties de Kock Date: Mon, 11 Dec 2023 11:45:19 +0100 Subject: [PATCH] Remove unused function --- .../net/ripe/rpki/rsyncit/rsync/RsyncWriter.java | 15 --------------- 1 file changed, 15 deletions(-) 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);