From 2380879376bd0aeeffb0262f98b9f168bfe198fb Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 11 Mar 2023 16:01:45 +0100 Subject: [PATCH] Remove unused IOException IOException may not be thrown from this method. --- server/src/main/java/com/genymobile/scrcpy/AudioCapture.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java index 3cef7801..9228e3d7 100644 --- a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java +++ b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java @@ -14,7 +14,6 @@ import android.media.MediaRecorder; import android.os.Build; import android.os.SystemClock; -import java.io.IOException; import java.nio.ByteBuffer; public final class AudioCapture { @@ -110,7 +109,7 @@ public final class AudioCapture { } @TargetApi(Build.VERSION_CODES.N) - public int read(ByteBuffer directBuffer, int size, MediaCodec.BufferInfo outBufferInfo) throws IOException { + public int read(ByteBuffer directBuffer, int size, MediaCodec.BufferInfo outBufferInfo) { int r = recorder.read(directBuffer, size); if (r < 0) { return r;