diff options
author | Harvey Harrison <[email protected]> | 2013-02-28 23:58:46 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-02-28 23:58:46 -0800 |
commit | cbcf9f3132cedb883bad5d569f1e68303f6d340d (patch) | |
tree | e6ad53f0d6a35e6e2fff126d7c8c4281a32062db | |
parent | e413ca6a324f7097e13c0df24ca7c5d9a470d9ef (diff) |
j3dcore: remove test for direct nio buffers, they are standard functionality
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/share/javax/media/j3d/J3DBuffer.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/classes/share/javax/media/j3d/J3DBuffer.java b/src/classes/share/javax/media/j3d/J3DBuffer.java index b46874c..5df072a 100644 --- a/src/classes/share/javax/media/j3d/J3DBuffer.java +++ b/src/classes/share/javax/media/j3d/J3DBuffer.java @@ -64,18 +64,6 @@ public class J3DBuffer { private BufferWrapper bufferImpl = null; private int bufferType = TYPE_NULL; -private static final boolean unsupportedOperation; - -static { - // Allocate a direct byte buffer and verify that we can - // access the data pointer from native code - java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(8); - if (buffer == null) - unsupportedOperation = true; - else - unsupportedOperation = false; -} - /** * Constructs a J3DBuffer object and initializes it with * a null NIO buffer object. The NIO buffer object @@ -105,9 +93,6 @@ static { * platform. */ public J3DBuffer(java.nio.Buffer buffer) { - if (unsupportedOperation) - throw new UnsupportedOperationException(J3dI18N.getString("J3DBuffer0")); - setBuffer(buffer); } |