From ab478d1a0feed49674bb7f08e25ffe39389c1b8a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 19 Nov 2023 16:08:36 -0500 Subject: [PATCH] Remove unused private method --- .../org/apache/commons/logging/LogFactory.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java index 1acef03..42ae752 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -1009,21 +1009,6 @@ public abstract class LogFactory { }); } - /** - * Applets may run in an environment where accessing resources of a loader is - * a secure operation, but where the commons-logging library has explicitly - * been granted permission for that operation. In this case, we need to - * run the operation using an AccessController. - */ - private static InputStream getResourceAsStream(final ClassLoader loader, final String name) { - return AccessController.doPrivileged((PrivilegedAction) () -> { - if (loader != null) { - return loader.getResourceAsStream(name); - } - return ClassLoader.getSystemResourceAsStream(name); - }); - } - /** * Given a file name, return an enumeration of URLs pointing to * all the occurrences of that file name in the classpath.