Remove unused comparators after SortOrder refactoring
This commit is contained in:
parent
9c895ef15a
commit
007f1fbb87
|
@ -1,6 +1,5 @@
|
||||||
package de.danoeh.antennapod.core.util.comparator;
|
package de.danoeh.antennapod.core.util.comparator;
|
||||||
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
|
||||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||||
|
@ -8,9 +7,6 @@ import de.danoeh.antennapod.core.feed.FeedItem;
|
||||||
/** Compares the pubDate of two FeedItems for sorting*/
|
/** Compares the pubDate of two FeedItems for sorting*/
|
||||||
public class FeedItemPubdateComparator implements Comparator<FeedItem> {
|
public class FeedItemPubdateComparator implements Comparator<FeedItem> {
|
||||||
|
|
||||||
public static final Comparator<FeedItem> descending = new FeedItemPubdateComparator();
|
|
||||||
public static final Comparator<FeedItem> ascending = Collections.reverseOrder(new FeedItemPubdateComparator());
|
|
||||||
|
|
||||||
/** Returns a new instance of this comparator in reverse order.
|
/** Returns a new instance of this comparator in reverse order.
|
||||||
public static FeedItemPubdateComparator newInstance() {
|
public static FeedItemPubdateComparator newInstance() {
|
||||||
FeedItemPubdateComparator
|
FeedItemPubdateComparator
|
||||||
|
|
Loading…
Reference in New Issue