Refactor: Remove unused fields

Change-Id: I224bdc1f2148d68b317028aafaed07dca39ba50f
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
index b2403c6..482bf78 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
@@ -42,7 +42,6 @@
 import org.onosproject.net.newresource.ResourcePath;
 import org.onosproject.net.newresource.ResourceService;
 import org.onosproject.net.resource.ResourceType;
-import org.onosproject.net.resource.device.DeviceResourceService;
 import org.onosproject.net.resource.link.DefaultLinkResourceRequest;
 import org.onosproject.net.resource.link.LambdaResource;
 import org.onosproject.net.resource.link.LambdaResourceAllocation;
@@ -84,9 +83,6 @@
     @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
     protected LinkResourceService linkResourceService;
 
-    @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
-    protected DeviceResourceService deviceResourceService;
-
     @Activate
     public void activate() {
         intentManager.registerCompiler(OpticalConnectivityIntent.class, this);
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java
index dcc942c..c53a6ad 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java
@@ -21,7 +21,6 @@
 import org.apache.felix.scr.annotations.Reference;
 import org.apache.felix.scr.annotations.ReferenceCardinality;
 import org.apache.felix.scr.annotations.Service;
-import org.onosproject.net.Port;
 import org.onosproject.net.device.DeviceService;
 import org.onosproject.net.intent.IntentId;
 import org.onosproject.net.resource.device.DeviceResourceStore;
@@ -45,14 +44,10 @@
 public class ConsistentDeviceResourceStore implements DeviceResourceStore {
     private final Logger log = getLogger(getClass());
 
-    private static final String PORT_ALLOCATIONS = "PortAllocations";
     private static final String INTENT_MAPPING = "IntentMapping";
-    private static final String INTENT_ALLOCATIONS = "PortIntentAllocations";
 
     private static final Serializer SERIALIZER = Serializer.using(KryoNamespaces.API);
 
-    private ConsistentMap<Port, IntentId> portAllocMap;
-    private ConsistentMap<IntentId, Set<Port>> intentAllocMap;
     private ConsistentMap<IntentId, Set<IntentId>> intentMapping;
 
     @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
@@ -63,14 +58,6 @@
 
     @Activate
     public void activate() {
-        portAllocMap = storageService.<Port, IntentId>consistentMapBuilder()
-                .withName(PORT_ALLOCATIONS)
-                .withSerializer(SERIALIZER)
-                .build();
-        intentAllocMap = storageService.<IntentId, Set<Port>>consistentMapBuilder()
-                .withName(INTENT_ALLOCATIONS)
-                .withSerializer(SERIALIZER)
-                .build();
         intentMapping = storageService.<IntentId, Set<IntentId>>consistentMapBuilder()
                 .withName(INTENT_MAPPING)
                 .withSerializer(SERIALIZER)