Remove some unused code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 4 Jul 2009 15:55:48 +0000 (15:55 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 4 Jul 2009 15:55:48 +0000 (15:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@791142 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/JspCompilationContext.java
java/org/apache/jasper/servlet/JasperLoader.java

index 286e17f..5326c0e 100644 (file)
@@ -179,8 +179,7 @@ public class JspCompilationContext {
             jspLoader = new JasperLoader
             (new URL[] {baseUrl},
                     getClassLoader(),
-                    rctxt.getPermissionCollection(),
-                    rctxt.getCodeSource());
+                    rctxt.getPermissionCollection());
         }
         return jspLoader;
     }
index d7b563c..5cb49ca 100644 (file)
@@ -37,17 +37,13 @@ import org.apache.jasper.Constants;
 public class JasperLoader extends URLClassLoader {
 
     private PermissionCollection permissionCollection;
-    private CodeSource codeSource;
-    private String className;
     private ClassLoader parent;
     private SecurityManager securityManager;
 
     public JasperLoader(URL[] urls, ClassLoader parent,
-                        PermissionCollection permissionCollection,
-                        CodeSource codeSource) {
+                        PermissionCollection permissionCollection) {
         super(urls, parent);
         this.permissionCollection = permissionCollection;
-        this.codeSource = codeSource;
         this.parent = parent;
         this.securityManager = System.getSecurityManager();
     }
@@ -148,7 +144,7 @@ public class JasperLoader extends URLClassLoader {
                 try {
                     is = url.openStream();
                 } catch (IOException e) {
-                    is = null;
+                    // Ignore
                 }
             }
         }