Remove some unnecessary code. (FELIX-2858)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1082298 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/resolver/ResolverImpl.java b/framework/src/main/java/org/apache/felix/framework/resolver/ResolverImpl.java
index e750bad..1bc6ffc 100644
--- a/framework/src/main/java/org/apache/felix/framework/resolver/ResolverImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/resolver/ResolverImpl.java
@@ -231,11 +231,6 @@
 
                     ResolveException rethrow = null;
 
-                    // If the requested module is a fragment, then
-                    // ultimately we will verify the host.
-                    Requirement hostReq = getHostRequirement(module);
-                    Module target = module;
-
                     do
                     {
                         rethrow = null;
@@ -254,7 +249,7 @@
                         // this case like we do for a normal resolve.
 
                         calculatePackageSpaces(
-                            allCandidates.getWrappedHost(target), allCandidates, modulePkgMap,
+                            allCandidates.getWrappedHost(module), allCandidates, modulePkgMap,
                             new HashMap(), new HashSet());
 //System.out.println("+++ PACKAGE SPACES START +++");
 //dumpModulePkgMap(modulePkgMap);
@@ -263,7 +258,7 @@
                         try
                         {
                             checkPackageSpaceConsistency(
-                                false, allCandidates.getWrappedHost(target),
+                                false, allCandidates.getWrappedHost(module),
                                 allCandidates, modulePkgMap, new HashMap());
                         }
                         catch (ResolveException ex)