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:31 UTC

[james-project] 03/49: [Refactoring] Lock::canI is never used

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 780d34250256b482c50a369de14bfdb56a3db5a0
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Nov 18 13:53:54 2019 +0700

    [Refactoring] Lock::canI is never used
---
 .../java/org/apache/james/mailrepository/file/Lock.java    | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/Lock.java b/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/Lock.java
index 1a1d5b6..48867b2 100644
--- a/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/Lock.java
+++ b/server/data/data-file/src/main/java/org/apache/james/mailrepository/file/Lock.java
@@ -42,20 +42,6 @@ public class Lock {
     }
 
     /**
-     * Check to see if we can lock on a given object.
-     * 
-     * @param key
-     *            the Object on which to lock
-     * @return true if the calling thread can lock, false otherwise
-     */
-    public boolean canI(Object key) {
-        Object o = locks.get(key);
-
-        return null == o || o == this.getCallerId();
-
-    }
-
-    /**
      * Lock on a given object.
      * 
      * @param key


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