From e816a69c28603e73673e50295bc0d3a88f01081d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 5 Jul 2016 22:46:00 +0200 Subject: [PATCH] Remove unused methods of IdUuidPairs --- .../java/org/sonar/db/purge/IdUuidPairs.java | 17 +---------------- 1 file changed, 1 insertion(+), 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 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)); - } - } -- 2.39.5