From fdccf16290c7b742337d3f7ab66e4b85660ca781 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 16 Jun 2023 05:30:05 +0200 Subject: Buffers.copyNativeToDirectByteBuffer(): Remove unused var --- src/java/com/jogamp/common/nio/Buffers.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/java/com/jogamp/common/nio') diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java index b22e41e..20fcc11 100644 --- a/src/java/com/jogamp/common/nio/Buffers.java +++ b/src/java/com/jogamp/common/nio/Buffers.java @@ -2068,7 +2068,6 @@ public class Buffers { * @return newly created direct {@link ByteBuffer} holding the copied bytes */ public static ByteBuffer copyNativeToDirectByteBuffer(final long source_address, final long len) { - final Method id; if( Integer.MAX_VALUE < len ) { throw new IllegalArgumentException("length "+len+" > MAX_INT"); } -- cgit v1.2.3