From 4850dd33f19c345ac93ad6d5df0c130360492093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Menu?= Date: Mon, 2 Oct 2023 14:17:48 +0200 Subject: [PATCH] Fix crash with `ChannelZipContainer` before API 26 (#403) --- .../util/archive/channel/compress/utils/IOUtils.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/readium/shared/src/main/java/org/readium/r2/shared/util/archive/channel/compress/utils/IOUtils.java b/readium/shared/src/main/java/org/readium/r2/shared/util/archive/channel/compress/utils/IOUtils.java index 2911408782..fb4e243e11 100644 --- a/readium/shared/src/main/java/org/readium/r2/shared/util/archive/channel/compress/utils/IOUtils.java +++ b/readium/shared/src/main/java/org/readium/r2/shared/util/archive/channel/compress/utils/IOUtils.java @@ -27,7 +27,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.nio.ByteBuffer; -import java.nio.file.LinkOption; /** * Utility functions @@ -38,13 +37,6 @@ public final class IOUtils { private static final int COPY_BUF_SIZE = 8024; private static final int SKIP_BUF_SIZE = 4096; - /** - * Empty array of type {@link LinkOption}. - * - * @since 1.21 - */ - public static final LinkOption[] EMPTY_LINK_OPTIONS = {}; - // This buffer does not need to be synchronized because it is write only; the contents are ignored // Does not affect Immutability private static final byte[] SKIP_BUF = new byte[SKIP_BUF_SIZE];