From 3901130f7fa4b3484a202f5db3a541f1edf9d6e8 Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Thu, 26 Jun 2014 11:18:01 +0000 Subject: Remove unused addNativeJarLibs() method; the only consumer was a unit test of the method. --- .../com/jogamp/common/jvm/JNILibLoaderBase.java | 39 ---------------------- 1 file changed, 39 deletions(-) (limited to 'src/java/com/jogamp/common/jvm') diff --git a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java index 201fc59..033f1a5 100644 --- a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java +++ b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java @@ -204,45 +204,6 @@ public class JNILibLoaderBase { return ok; } - /** - * Loads and adds a JAR file's native library to the TempJarCache.
- * The native library JAR file's URI is derived as follows: - * - * Where: - * - * - * @param classFromJavaJar GLProfile - * @param nativeJarBasename jogl-all - * @return true if the native JAR file loaded successful or were loaded already, false in case of an error - */ - public static final boolean addNativeJarLibs(Class classFromJavaJar, String nativeJarBasename) { - if(TempJarCache.isInitialized()) { - final StringBuilder msg = new StringBuilder(); - try { - final URI classJarURI = JarUtil.getJarURI(classFromJavaJar.getName(), classFromJavaJar.getClassLoader()); - final String jarName = JarUtil.getJarBasename(classJarURI); - return addNativeJarLibsImpl(classFromJavaJar, classJarURI, jarName, nativeJarBasename+"-natives-"+PlatformPropsImpl.os_and_arch+".jar", msg); - } catch (Exception e0) { - // IllegalArgumentException, IOException - System.err.println("Catched "+e0.getClass().getSimpleName()+": "+e0.getMessage()+", while "+msg.toString()); - if(DEBUG) { - e0.printStackTrace(); - } - } - } else if(DEBUG) { - System.err.println("JNILibLoaderBase: addNativeJarLibs1: disabled due to uninitialized TempJarCache"); - } - return false; - } - /** * Loads and adds a JAR file's native library to the TempJarCache, * calling {@link JNILibLoaderBase#addNativeJarLibs(Class[], String, String[])} -- cgit v1.2.3