Skip to content

Commit

Permalink
pool: remove dead code in NearlineStorageHandler
Browse files Browse the repository at this point in the history
Acked-by: Lea Morschel
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed Aug 21, 2020
1 parent a11c316 commit 0431fe2
Showing 1 changed file with 0 additions and 15 deletions.
Expand Up @@ -42,7 +42,6 @@
import java.nio.file.Paths;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
Expand Down Expand Up @@ -455,20 +454,6 @@ public void stickyChanged(StickyChangeEvent event)
{
}

private <T extends AbstractRequest> List<T> getRequests(Collection<T> queue, int limit) {
List<T> requests = new ArrayList<>();
int i = 0;
for (T request: queue) {
if (i >= limit) {
break;
}
requests.add(request);
++i;
}

return requests;
}

/**
* Abstract base class for request implementations.
*
Expand Down

0 comments on commit 0431fe2

Please sign in to comment.