From: David ‘Bombe’ Roden Date: Fri, 22 Feb 2019 14:13:34 +0000 (+0100) Subject: Remove unused Comparator X-Git-Tag: v79^2~107^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f5fc7fdf598e1a10757069e0701c41a86047d266;p=Sone.git Remove unused Comparator --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index e7e422a..f90a42f 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -22,7 +22,6 @@ import static java.util.Collections.emptyList; import java.util.ArrayList; import java.util.Collections; -import java.util.Comparator; import java.util.List; import javax.annotation.Nonnull; @@ -36,15 +35,6 @@ import com.google.common.collect.ImmutableList; */ public interface Album extends Identified, Fingerprintable { - /** Compares two {@link Album}s by {@link #getTitle()}. */ - Comparator TITLE_COMPARATOR = new Comparator() { - - @Override - public int compare(Album leftAlbum, Album rightAlbum) { - return leftAlbum.getTitle().compareToIgnoreCase(rightAlbum.getTitle()); - } - }; - /** Function that flattens the given album and all albums beneath it. */ Function> FLATTENER = new Function>() {