From: Simon Brandhof Date: Tue, 5 Jul 2016 20:46:00 +0000 (+0200) Subject: Remove unused methods of IdUuidPairs X-Git-Tag: 6.0-RC1~144 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e816a69c28603e73673e50295bc0d3a88f01081d;p=sonarqube.git Remove unused methods of IdUuidPairs --- 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 ids(Iterable pairs) { - if (pairs instanceof List) { - return ids((List) pairs); - } - return ids(Lists.newArrayList(pairs)); - } - public static List uuids(List pairs) { return pairs.stream().map(IdUuidPair::getUuid).collect(Collectors.toCollection(() -> new ArrayList<>(pairs.size()))); } - public static List uuids(Iterable pairs) { - if (pairs instanceof List) { - return uuids((List) pairs); - } - return uuids(Lists.newArrayList(pairs)); - } - }