From 4447232af0d95a4348d09d4ed03fbef48394ca3a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 21 Feb 2014 12:25:36 +0100 Subject: Bug 980: Refine Bitstream API 'signed' and 'unsigned' semantics - readUInt32(..) must return long due to EOF --- src/junit/com/jogamp/common/util/BitstreamData.java | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/junit/com/jogamp/common/util/BitstreamData.java') diff --git a/src/junit/com/jogamp/common/util/BitstreamData.java b/src/junit/com/jogamp/common/util/BitstreamData.java index 5a8bd46..a434053 100644 --- a/src/junit/com/jogamp/common/util/BitstreamData.java +++ b/src/junit/com/jogamp/common/util/BitstreamData.java @@ -115,9 +115,4 @@ public class BitstreamData { final int nibbles = 0 == bitCount ? 2 : ( bitCount + 3 ) / 4; return String.format("[%0"+nibbles+"X, %s]", v, toBinaryString(v, bitCount)); } - public static String toUnsignedBinaryString(final int int32) { - final long l = Bitstream.toUInt32Long(int32); - final int i = Bitstream.toUInt32Int(int32); - return "(long)"+l+", (int)"+i+", "+toHexBinaryString(l, 32); - } } -- cgit v1.2.3