ApprovalsUtil: Remove unused sortApprovals method
Change-Id: I33ec2c86a50237d8cbe29139c77e5d891214f7b5
diff --git a/java/com/google/gerrit/server/ApprovalsUtil.java b/java/com/google/gerrit/server/ApprovalsUtil.java
index 95b92af..606ca16 100644
--- a/java/com/google/gerrit/server/ApprovalsUtil.java
+++ b/java/com/google/gerrit/server/ApprovalsUtil.java
@@ -17,14 +17,12 @@
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.gerrit.server.notedb.ReviewerStateInternal.CC;
import static com.google.gerrit.server.notedb.ReviewerStateInternal.REVIEWER;
-import static java.util.Comparator.comparing;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;
-import com.google.common.collect.Ordering;
import com.google.common.collect.Sets;
import com.google.common.flogger.FluentLogger;
import com.google.common.primitives.Shorts;
@@ -81,13 +79,6 @@
public class ApprovalsUtil {
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
- private static final Ordering<PatchSetApproval> SORT_APPROVALS =
- Ordering.from(comparing(PatchSetApproval::getGranted));
-
- public static List<PatchSetApproval> sortApprovals(Iterable<PatchSetApproval> approvals) {
- return SORT_APPROVALS.sortedCopy(approvals);
- }
-
public static PatchSetApproval newApproval(
PatchSet.Id psId, CurrentUser user, LabelId labelId, int value, Date when) {
PatchSetApproval psa =