james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [07/14] james-project git commit: JAMES-2556 Remove unused MailRepositoryStoreService::getRepository
Date Wed, 10 Oct 2018 08:48:20 GMT
JAMES-2556 Remove unused MailRepositoryStoreService::getRepository


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/95b4ead2
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/95b4ead2
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/95b4ead2

Branch: refs/heads/master
Commit: 95b4ead22d4fd4d934f848c10579b258ab0d4899
Parents: d68a63e
Author: Benoit Tellier <btellier@linagora.com>
Authored: Wed Oct 10 10:22:48 2018 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Wed Oct 10 15:46:19 2018 +0700

----------------------------------------------------------------------
 .../james/webadmin/service/MailRepositoryStoreService.java  | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/95b4ead2/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
----------------------------------------------------------------------
diff --git a/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
b/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
index a626655..987b443 100644
--- a/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
+++ b/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
@@ -105,15 +105,6 @@ public class MailRepositoryStoreService {
         return new ClearMailRepositoryTask(getRepositories(path).collect(Guavate.toImmutableList()),
path);
     }
 
-    public MailRepository getRepository(MailRepositoryUrl url) throws MailRepositoryStore.MailRepositoryStoreException
{
-        return mailRepositoryStore.get(url)
-            .orElseThrow(() -> ErrorResponder.builder()
-                .statusCode(HttpStatus.NOT_FOUND_404)
-                .type(ErrorResponder.ErrorType.NOT_FOUND)
-                .message(url.asString() + " does not exist")
-                .haltError());
-    }
-
     public Stream<MailRepository> getRepositories(MailRepositoryPath path) throws MailRepositoryStore.MailRepositoryStoreException
{
         Stream<MailRepository> byPath = mailRepositoryStore.getByPath(path);
         List<MailRepository> repositories = byPath.collect(Collectors.toList());


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message