X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FReply.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FReply.java;h=705b1e417aea34a7bf962402a7b935db1494d9c6;hp=120575eadd2cd92f25cab1f86865ff9ab7622cb1;hb=f049280a40ddf05f02400e7f0d93a24dea4545c2;hpb=be005506d77e048c7de43f08771b072951ab82f9 diff --git a/src/main/java/net/pterodactylus/sone/data/Reply.java b/src/main/java/net/pterodactylus/sone/data/Reply.java index 120575e..705b1e4 100644 --- a/src/main/java/net/pterodactylus/sone/data/Reply.java +++ b/src/main/java/net/pterodactylus/sone/data/Reply.java @@ -29,19 +29,6 @@ import com.google.common.base.Predicate; */ public interface Reply> extends Identified { - /** Comparator that sorts replies ascending by time. */ - public static final Comparator> TIME_COMPARATOR = new Comparator>() { - - /** - * {@inheritDoc} - */ - @Override - public int compare(Reply leftReply, Reply rightReply) { - return (int) Math.max(Integer.MIN_VALUE, Math.min(Integer.MAX_VALUE, leftReply.getTime() - rightReply.getTime())); - } - - }; - /** Filter for replies with timestamps from the future. */ public static final Predicate> FUTURE_REPLY_FILTER = new Predicate>() {