From e734462e5d142ffbcd959c5910ed947dca8ad5cb Mon Sep 17 00:00:00 2001 From: Dawid Jenczewski Date: Fri, 13 Dec 2024 13:57:25 +0100 Subject: [PATCH] refactor: remove unused code (#10) --- .../storeFileStream/StoreFileStreamReader.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/storeFileStream/StoreFileStreamReader.java b/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/storeFileStream/StoreFileStreamReader.java index 94ba097..f9c9400 100644 --- a/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/storeFileStream/StoreFileStreamReader.java +++ b/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/storeFileStream/StoreFileStreamReader.java @@ -17,8 +17,6 @@ import java.io.IOException; import java.io.OutputStream; -import java.util.concurrent.Executors; -import java.util.concurrent.ThreadPoolExecutor; /** @@ -137,7 +135,6 @@ public byte[] read(Long size) throws IOException, PrivmxException, NativeExcepti * @throws NativeException if there is an unknown error while seeking */ public void seek(long position) throws IllegalStateException, PrivmxException, NativeException { - storeApi.seekInFile(handle,position); - ((ThreadPoolExecutor) Executors.newSingleThreadExecutor()).getQueue().clear(); + storeApi.seekInFile(handle, position); } }