aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-07-05 22:46:00 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-07-06 15:44:31 +0200
commite816a69c28603e73673e50295bc0d3a88f01081d (patch)
treead815d86d0357a71a7c5d39e354516e1ad2add2c /sonar-db/src
parent8b35f61e59a7fd502c3c2b7ba14e7c5a279e8f2a (diff)
downloadsonarqube-e816a69c28603e73673e50295bc0d3a88f01081d.tar.gz
sonarqube-e816a69c28603e73673e50295bc0d3a88f01081d.zip
Remove unused methods of IdUuidPairs
Diffstat (limited to 'sonar-db/src')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java b/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java
index 2e81cecfe9d..74c2970592e 100644
--- a/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java
+++ b/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java
@@ -19,12 +19,11 @@
*/
package org.sonar.db.purge;
-import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
-public final class IdUuidPairs {
+class IdUuidPairs {
private IdUuidPairs() {
// prevents instantiation
}
@@ -33,22 +32,8 @@ public final class IdUuidPairs {
return pairs.stream().map(IdUuidPair::getId).collect(Collectors.toCollection(() -> new ArrayList<>(pairs.size())));
}
- public static List<Long> ids(Iterable<IdUuidPair> pairs) {
- if (pairs instanceof List) {
- return ids((List<IdUuidPair>) pairs);
- }
- return ids(Lists.newArrayList(pairs));
- }
-
public static List<String> uuids(List<IdUuidPair> pairs) {
return pairs.stream().map(IdUuidPair::getUuid).collect(Collectors.toCollection(() -> new ArrayList<>(pairs.size())));
}
- public static List<String> uuids(Iterable<IdUuidPair> pairs) {
- if (pairs instanceof List) {
- return uuids((List<IdUuidPair>) pairs);
- }
- return uuids(Lists.newArrayList(pairs));
- }
-
}