From df22ac586a1eab0cfaddd2c62f3b71ed74838b21 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 20 Apr 2015 21:05:36 -0700 Subject: Libcore: Remove getClassLoaderImpl This is an unnecessary method. Change-Id: I4457ff8491628208312d0ba8b2fa4230a597c5de --- libart/src/main/java/java/lang/Class.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'libart') diff --git a/libart/src/main/java/java/lang/Class.java b/libart/src/main/java/java/lang/Class.java index c25e58c..573e753 100644 --- a/libart/src/main/java/java/lang/Class.java +++ b/libart/src/main/java/java/lang/Class.java @@ -418,24 +418,7 @@ public final class Class implements Serializable, AnnotatedElement, GenericDe return null; } - ClassLoader loader = getClassLoaderImpl(); - if (loader == null) { - loader = BootClassLoader.getInstance(); - } - return loader; - } - - /** - * This must be provided by the VM vendor, as it is used by other provided - * class implementations in this package. Outside of this class, it is used - * by SecurityManager.classLoaderDepth(), - * currentClassLoader() and currentLoadedClass(). Return the ClassLoader for - * this Class without doing any security checks. The bootstrap ClassLoader - * is returned, unlike getClassLoader() which returns null in place of the - * bootstrap ClassLoader. - */ - ClassLoader getClassLoaderImpl() { - ClassLoader loader = classLoader; + final ClassLoader loader = classLoader; return loader == null ? BootClassLoader.getInstance() : loader; } -- cgit v1.1