diff options
author | jfrijters <jfrijters> | 2013-02-21 11:06:25 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2013-02-21 11:06:25 +0400 |
commit | 7b2f38c2ed0cd3933e4159bac2622a956dc8183e (patch) | |
tree | 72d6ec8430e8ae0231123bf9459a6ef13799f2c6 | |
parent | 8c2bfcd0e390c1825ae33010c2b769075818c163 (diff) |
Inlined function that's only used once.
-rw-r--r-- | runtime/common.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/common.cs b/runtime/common.cs index 35727c4d..58fe131f 100644 --- a/runtime/common.cs +++ b/runtime/common.cs @@ -336,7 +336,7 @@ namespace IKVM.NativeCode.ikvm.runtime { // HACK we use an index to identify the generic class loader in the url // TODO this obviously isn't persistable, we should use a list of assemblies instead. - return new global::java.net.URL("ikvmres", "gen", GetGenericClassLoaderId(c.getClassLoader()), "/" + name); + return new global::java.net.URL("ikvmres", "gen", ClassLoaderWrapper.GetGenericClassLoaderId(ClassLoaderWrapper.GetClassLoaderWrapper(c.getClassLoader())), "/" + name); } } catch (global::java.net.MalformedURLException x) @@ -381,15 +381,6 @@ namespace IKVM.NativeCode.ikvm.runtime return packages; } - public static int GetGenericClassLoaderId(global::java.lang.ClassLoader classLoader) - { -#if FIRST_PASS - return 0; -#else - return ClassLoaderWrapper.GetGenericClassLoaderId(ClassLoaderWrapper.GetClassLoaderWrapper(classLoader)); -#endif - } - public static global::java.lang.ClassLoader getAssemblyClassLoader(Assembly asm) { // note that we don't do a security check here, because if you have the Assembly object, |