[jboss-cvs] JBossAS SVN: r108358 - trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/metadata.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 27 06:59:06 EDT 2010


Author: alesj
Date: 2010-09-27 06:59:06 -0400 (Mon, 27 Sep 2010)
New Revision: 108358

Modified:
   trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/metadata/WeldFilesDeployer.java
Log:
Remove bad code.

Modified: trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/metadata/WeldFilesDeployer.java
===================================================================
--- trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/metadata/WeldFilesDeployer.java	2010-09-27 07:40:34 UTC (rev 108357)
+++ trunk/weld-int/deployer/src/main/java/org/jboss/weld/integration/deployer/metadata/WeldFilesDeployer.java	2010-09-27 10:59:06 UTC (rev 108358)
@@ -23,7 +23,6 @@
 
 import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.List;
 
 import org.jboss.deployers.spi.DeploymentException;
@@ -106,23 +105,6 @@
     */
    protected Iterable<VirtualFile> getClassPaths(VFSDeploymentUnit unit) throws Exception
    {
-      /*List<VirtualFile> classpath = unit.getClassPath();
-      if (classpath != null && classpath.isEmpty() == false)
-      {
-         List<VirtualFile> matching = new ArrayList<VirtualFile>();
-         VirtualFile root = unit.getRoot();
-         for (VirtualFile cp : classpath)
-         {
-            VirtualFile check = cp;
-            while (check != null && check.equals(root) == false)
-               check = check.getParent();
-
-            if (check != null)
-               matching.add(cp);
-         }
-         return matching;
-      }
-      return Collections.emptySet();*/
       return unit.getClassPath();
    }
 }
\ No newline at end of file



More information about the jboss-cvs-commits mailing list