From ddec3c7b86fef048439c2c18877a1ba392bfbf8b Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 25 Apr 2017 14:15:46 +0200 Subject: [PATCH] Cleanup (dead code; typo) --- .../util/src/com/intellij/util/lang/UrlClassLoader.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/platform/util/src/com/intellij/util/lang/UrlClassLoader.java b/platform/util/src/com/intellij/util/lang/UrlClassLoader.java index cc913505e664..1ab1185d3925 100644 --- a/platform/util/src/com/intellij/util/lang/UrlClassLoader.java +++ b/platform/util/src/com/intellij/util/lang/UrlClassLoader.java @@ -293,7 +293,7 @@ public class UrlClassLoader extends ClassLoader { private Resource _getResource(final String name) { String n = FileUtil.toCanonicalUriPath(name); Resource resource = getClassPath().getResource(n, true); - if (resource == null && n.startsWith("/")) { // compatibility with existing code, nonstd classloader behavior + if (resource == null && n.startsWith("/")) { // compatibility with existing code, non-standard classloader behavior resource = getClassPath().getResource(n.substring(1), true); } return resource; @@ -350,13 +350,6 @@ public class UrlClassLoader extends ClassLoader { return fileName; } - private static String getPlatformName() { - if (SystemInfo.isWindows) return "win/"; - else if (SystemInfo.isMac) return "mac/"; - else if (SystemInfo.isLinux) return "linux/"; - else return ""; - } - // called by a parent class on Java 7+ @SuppressWarnings("unused") protected Object getClassLoadingLock(String className) {