summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-02-28 23:58:46 -0800
committerHarvey Harrison <[email protected]>2013-02-28 23:58:46 -0800
commitcbcf9f3132cedb883bad5d569f1e68303f6d340d (patch)
treee6ad53f0d6a35e6e2fff126d7c8c4281a32062db /src
parente413ca6a324f7097e13c0df24ca7c5d9a470d9ef (diff)
j3dcore: remove test for direct nio buffers, they are standard functionality
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/J3DBuffer.java15
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);
}