Remove deprecated and unused constructor
@@ -3,15 +3,13 @@ package com.yahoo.vespa.curator;
import com.google.common.util.concurrent.UncheckedTimeoutException;
import com.yahoo.transaction.Mutex;
-import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.locks.InterProcessLock;
-import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import java.time.Duration;
import java.util.concurrent.TimeUnit;
/**
- * A cluster-wide reentrant mutex which is released on (the last symmetric) close
+ * A cluster-wide re-entrant mutex which is released on (the last symmetric) close
*
* @author bratseth
*/
@@ -20,13 +18,6 @@ public class Lock implements Mutex {
private final InterProcessLock mutex;
private final String lockPath;
- /** @deprecated pass a Curator instance instead */
- @Deprecated
- public Lock(String lockPath, CuratorFramework curator) {
- this.lockPath = lockPath;
- mutex = new InterProcessMutex(curator, lockPath);
- }
-
public Lock(String lockPath, Curator curator) {
this.lockPath = lockPath;
mutex = curator.createMutex(lockPath);
