commit | 47057c0337235b5cbcc01398664c21f9376590f0 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 06 16:17:21 2016 -0700 |
committer | Sho Shimizu <sho.shimizu@gmail.com> | Wed May 11 14:57:49 2016 +0000 |
tree | fd9009ca192a5c8f4a29339e55ad5d686b73257f | |
parent | deb0442c859461e6f30436f4c7e79146ef6d59f6 [diff] |
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);