remove duplicate code

This commit is contained in:
nishantmonu51 2014-06-05 23:16:38 +05:30
parent 03e1fb6f3f
commit ab31300513
1 changed files with 1 additions and 13 deletions

View File

@ -426,19 +426,7 @@ public class DruidCoordinator
{
Set<DataSegment> availableSegments = Sets.newTreeSet(Comparators.inverse(DataSegment.bucketMonthComparator()));
Iterable<DataSegment> dataSegments = Iterables.concat(
Iterables.transform(
databaseSegmentManager.getInventory(),
new Function<DruidDataSource, Iterable<DataSegment>>()
{
@Override
public Iterable<DataSegment> apply(DruidDataSource input)
{
return input.getSegments();
}
}
)
);
Iterable<DataSegment> dataSegments = getAvailableDataSegments();
for (DataSegment dataSegment : dataSegments) {
if (dataSegment.getSize() < 0) {