Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
-
None
Description
In functions: HierarchicalAllocatorProcess<RoleSorter, FrameworkSorter>::initialize() and HierarchicalAllocatorProcess<RoleSorter, FrameworkSorter>::allocate(), it does not need to check the roleSorter->count() , because the role * always be added to roleSorter.
So suggest to remove the following lines from initialize() and allocate() functions:
if (roleSorter>count() == 0)