diff --git a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java index f4e83af..9a6c8eb 100644 --- a/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java +++ b/src/main/java/net/minecraft/launchwrapper/LaunchClassLoader.java @@ -17,7 +17,6 @@ import java.util.jar.Manifest; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.core.Logger; public class LaunchClassLoader extends URLClassLoader { public static final int BUFFER_SIZE = 1 << 12; @@ -30,14 +29,11 @@ public class LaunchClassLoader extends URLClassLoader { private Set classLoaderExceptions = new HashSet(); private Set transformerExceptions = new HashSet(); - private Map packageManifests = new ConcurrentHashMap(); private Map resourceCache = new ConcurrentHashMap(1000); private Set negativeResourceCache = Collections.newSetFromMap(new ConcurrentHashMap()); private IClassNameTransformer renameTransformer; - private static final Manifest EMPTY = new Manifest(); - private final ThreadLocal loadBuffer = new ThreadLocal(); private static final String[] RESERVED_NAMES = {"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"}; @@ -153,7 +149,6 @@ public class LaunchClassLoader extends URLClassLoader { signers = entry.getCodeSigners(); if (pkg == null) { pkg = definePackage(packageName, manifest, jarURLConnection.getJarFileURL()); - packageManifests.put(pkg, manifest); } else { if (pkg.isSealed() && !pkg.isSealed(jarURLConnection.getJarFileURL())) { LogWrapper.severe("The jar file %s is trying to seal already secured path %s", jarFile.getName(), packageName); @@ -166,7 +161,6 @@ public class LaunchClassLoader extends URLClassLoader { Package pkg = getPackage(packageName); if (pkg == null) { pkg = definePackage(packageName, null, null, null, null, null, null, null); - packageManifests.put(pkg, EMPTY); } else if (pkg.isSealed()) { LogWrapper.severe("The URL %s is defining elements for sealed path %s", urlConnection.getURL(), packageName); }