Remove unnecessary method

This commit is contained in:
jeffcheasey88 2025-02-01 16:24:46 +01:00
parent f2ecb3a1eb
commit 2c135c2e26

View file

@ -23,10 +23,6 @@ public class Locker<V>{
this.map.remove(key);
}
private BlockingQueue<V> get(Key key){
return this.map.get(key);
}
public void pushValue(V value){
for(BlockingQueue<V> queue : this.map.values()){
queue.add(value);
@ -35,7 +31,7 @@ public class Locker<V>{
}
public V getValue(Key key) throws InterruptedException{
BlockingQueue<V> queue = get(key);
BlockingQueue<V> queue = this.map.get(key);
lock(queue);
return queue.poll();
}