Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ties committed Dec 11, 2023
1 parent bf25865 commit e796974
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main/java/net/ripe/rpki/rsyncit/rsync/RsyncWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -232,18 +229,6 @@ void cleanupOldTargetDirectories(Instant now, Path baseDirectory) throws IOExcep
}
}

public interface IOExceptionThrowingCallable<T> {
T call() throws IOException;
}

static <T> T withUncheckedIOException(IOExceptionThrowingCallable<T> callable) {
try {
return callable.call();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}

private FileTime getLastModifiedTime(Path path) {
try {
return Files.getLastModifiedTime(path);
Expand Down

0 comments on commit e796974

Please sign in to comment.