diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 22:52:34 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 22:52:34 +0000 |
commit | 506b634b780dcd23aa61015c2ceba3e687196abf (patch) | |
tree | 897649a36cc769351704a050828f8e0e994c5686 /make/jawt-DrawingSurfaceInfo-CustomJavaCode.java | |
parent | 04c0c10bfee764dbd0301ae83a0fae695dcb5b23 (diff) |
Deleted obsolete source code in preparation for copying JOGL_2_SANDBOX
on to trunk
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1958 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/jawt-DrawingSurfaceInfo-CustomJavaCode.java')
-rwxr-xr-x | make/jawt-DrawingSurfaceInfo-CustomJavaCode.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/make/jawt-DrawingSurfaceInfo-CustomJavaCode.java b/make/jawt-DrawingSurfaceInfo-CustomJavaCode.java deleted file mode 100755 index 2e9bd37b6..000000000 --- a/make/jawt-DrawingSurfaceInfo-CustomJavaCode.java +++ /dev/null @@ -1,38 +0,0 @@ -public JAWT_PlatformInfo platformInfo() { - return newPlatformInfo(platformInfo0(getBuffer())); -} - -private native ByteBuffer platformInfo0(Buffer jthis0); - -private static java.lang.reflect.Method platformInfoFactoryMethod; - -private static JAWT_PlatformInfo newPlatformInfo(ByteBuffer buf) { - if (platformInfoFactoryMethod == null) { - String osName = (String) AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - return System.getProperty("os.name").toLowerCase(); - } - }); - try { - Class factoryClass; - if (osName.startsWith("wind")) { - factoryClass = Class.forName("com.sun.opengl.impl.windows.JAWT_Win32DrawingSurfaceInfo"); - } else if (osName.startsWith("mac os x")) { - factoryClass = Class.forName("com.sun.opengl.impl.macosx.JAWT_MacOSXDrawingSurfaceInfo"); - } else { - // Assume Linux, Solaris, etc. Should probably test for these explicitly. - factoryClass = Class.forName("com.sun.opengl.impl.x11.JAWT_X11DrawingSurfaceInfo"); - } - platformInfoFactoryMethod = factoryClass.getMethod("create", - new Class[] { ByteBuffer.class }); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - try { - return (JAWT_PlatformInfo) - platformInfoFactoryMethod.invoke(null, new Object[] { buf }); - } catch (Exception e) { - throw new RuntimeException(e); - } -} |