mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Item counters refactor. Removing unnecessary code.
This commit is contained in:
@@ -713,8 +713,6 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
|
||||
|
||||
@Override
|
||||
public int getArchivedItems(Community community) throws ItemCountException {
|
||||
//TODO load ItemCounter on bean creation
|
||||
Context context = new Context();
|
||||
return new ItemCounter(context).getCount(community);
|
||||
return ItemCounter.getInstance().getCount(community);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user