Repository: james-project Updated Branches: refs/heads/master 3f95b1f2f -> a25b4d091
JAMES-2344 Remove useless method Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/79876e38 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/79876e38 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/79876e38 Branch: refs/heads/master Commit: 79876e384b151777c24ca1c628327d51def5a322 Parents: 3f95b1f Author: Raphael Ouazana <[email protected]> Authored: Wed Mar 14 15:06:15 2018 +0100 Committer: benwa <[email protected]> Committed: Thu Mar 15 14:40:09 2018 +0700 ---------------------------------------------------------------------- .../james/mailbox/store/mail/model/SerializableQuota.java | 5 ----- 1 file changed, 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/79876e38/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/SerializableQuota.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/SerializableQuota.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/SerializableQuota.java index bbd5bbd..5f66c16 100644 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/SerializableQuota.java +++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/SerializableQuota.java @@ -22,7 +22,6 @@ package org.apache.james.mailbox.store.mail.model; import java.io.Serializable; import java.util.Objects; import java.util.Optional; -import java.util.function.Function; import org.apache.james.mailbox.model.Quota; import org.apache.james.mailbox.quota.QuotaValue; @@ -44,10 +43,6 @@ public class SerializableQuota<T extends QuotaValue<T>> implements Serializable ); } - private static <U extends QuotaValue<U>> SerializableQuotaValue<U> getUsed(Optional<U> quota, Function<U, SerializableQuotaValue<U>> factory) { - return quota.map(factory).orElse(null); - } - private final SerializableQuotaValue<T> max; private final SerializableQuotaValue<T> used; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
