Refactor: Simplify getAllocatedResources() in ConsistentResourceStore

Change-Id: I02c4c4b5304c0e16e49356afbf6bb4e2fad2afa6
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java
index cc870c5..c20384b 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentResourceStore.java
@@ -311,11 +311,6 @@
         checkNotNull(parent);
         checkNotNull(cls);
 
-        Set<Resource> children = getChildResources(parent);
-        if (children.isEmpty()) {
-            return children;
-        }
-
         Stream<DiscreteResource> discrete = discreteStore.getAllocatedResources(parent, cls);
         Stream<ContinuousResource> continuous = continuousStore.getAllocatedResources(parent, cls);