You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/11/20 01:56:39 UTC

[james-project] 11/49: [Refactoring] JPAUsersRepository::getRealName is never called

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 66d51c93c43394ed432693ca884b9d17c3d8696a
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Nov 18 14:18:36 2019 +0700

    [Refactoring] JPAUsersRepository::getRealName is never called
---
 .../org/apache/james/user/jpa/JPAUsersRepository.java   | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/server/data/data-jpa/src/main/java/org/apache/james/user/jpa/JPAUsersRepository.java b/server/data/data-jpa/src/main/java/org/apache/james/user/jpa/JPAUsersRepository.java
index 369bb38..6304426 100644
--- a/server/data/data-jpa/src/main/java/org/apache/james/user/jpa/JPAUsersRepository.java
+++ b/server/data/data-jpa/src/main/java/org/apache/james/user/jpa/JPAUsersRepository.java
@@ -99,23 +99,6 @@ public class JPAUsersRepository extends AbstractUsersRepository {
     }
 
     /**
-     * Returns the user name of the user matching name on an equalsIgnoreCase
-     * basis. Returns null if no match.
-     * 
-     * @param name
-     *            the name to case-correct
-     * @return the case-correct name of the user, null if the user doesn't exist
-     * @throws UsersRepositoryException
-     */
-    public String getRealName(Username name) throws UsersRepositoryException {
-        User u = getUserByName(name);
-        if (u != null) {
-            u.getUserName();
-        }
-        return null;
-    }
-
-    /**
      * Update the repository with the specified user object. A user object with
      * this username must already exist.
      * 


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