aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-09-18 13:26:08 +0200
committerJon Marius Venstad <venstad@gmail.com>2019-09-18 16:39:10 +0200
commit9ce100890a8a1a04e98d1b90a3df02ce50ebe3ff (patch)
tree0f93a058c90dadcc9b2d663627c699ba2bbbd34e /controller-server
parent9a396151e692152294f1382e896b92861b79f8ff (diff)
Remove unused class Lock
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/concurrent/Lock.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/concurrent/Lock.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/concurrent/Lock.java
deleted file mode 100644
index df80fafd388..00000000000
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/concurrent/Lock.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.hosted.controller.concurrent;
-
-import java.util.concurrent.locks.ReentrantLock;
-
-/**
- * An acquired lock which is released on close
- *
- * @author bratseth
- */
-public final class Lock implements AutoCloseable {
-
- private final ReentrantLock wrappedLock;
-
- Lock(ReentrantLock wrappedLock) {
- this.wrappedLock = wrappedLock;
- }
-
- /** Releases this lock */
- public void close() {
- wrappedLock.unlock();
- }
-
-}