Committed by
Sho Shimizu
Refactor: Simplify getAllocatedResources() in ConsistentResourceStore
Change-Id: I02c4c4b5304c0e16e49356afbf6bb4e2fad2afa6
Showing
1 changed file
with
0 additions
and
5 deletions
| ... | @@ -311,11 +311,6 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour | ... | @@ -311,11 +311,6 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour |
| 311 | checkNotNull(parent); | 311 | checkNotNull(parent); |
| 312 | checkNotNull(cls); | 312 | checkNotNull(cls); |
| 313 | 313 | ||
| 314 | - Set<Resource> children = getChildResources(parent); | ||
| 315 | - if (children.isEmpty()) { | ||
| 316 | - return children; | ||
| 317 | - } | ||
| 318 | - | ||
| 319 | Stream<DiscreteResource> discrete = discreteStore.getAllocatedResources(parent, cls); | 314 | Stream<DiscreteResource> discrete = discreteStore.getAllocatedResources(parent, cls); |
| 320 | Stream<ContinuousResource> continuous = continuousStore.getAllocatedResources(parent, cls); | 315 | Stream<ContinuousResource> continuous = continuousStore.getAllocatedResources(parent, cls); |
| 321 | 316 | ... | ... |
-
Please register or login to post a comment