You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2009/11/06 16:11:17 UTC

svn commit: r833432 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java

Author: rickhall
Date: Fri Nov  6 15:11:16 2009
New Revision: 833432

URL: http://svn.apache.org/viewvc?rev=833432&view=rev
Log:
Remove unneeded code.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java?rev=833432&r1=833431&r2=833432&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/searchpolicy/Resolver.java Fri Nov  6 15:11:16 2009
@@ -52,7 +52,6 @@
 
     // Reusable empty array.
     private static final IWire[] m_emptyWires = new IWire[0];
-    private static final IModule[] m_emptyModules = new IModule[0];
 
     public Resolver(Logger logger, String fwkExecEnvStr)
     {
@@ -1719,34 +1718,6 @@
         return newSet;
     }
 
-    private static IModule[] shrinkModuleArray(IModule[] modules)
-    {
-        if (modules == null)
-        {
-            return m_emptyModules;
-        }
-
-        // Move all non-null values to one end of the array.
-        int lower = 0;
-        for (int i = 0; i < modules.length; i++)
-        {
-            if (modules[i] != null)
-            {
-                modules[lower++] = modules[i];
-            }
-        }
-
-        if (lower == 0)
-        {
-            return m_emptyModules;
-        }
-
-        // Copy non-null values into a new array and return.
-        IModule[] newModules = new IModule[lower];
-        System.arraycopy(modules, 0, newModules, 0, lower);
-        return newModules;
-    }
-
     //
     // Inner classes.
     //