From 116f15ace5d28579516474a9b0bff06aa1577a3d Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 1 Oct 2017 16:18:05 -0400 Subject: [PATCH] lockset: drop unused method wait_unlock This function is not used and does not appear to be useful. Remove it. Signed-off-by: Zygo Blaxell --- include/crucible/lockset.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/crucible/lockset.h b/include/crucible/lockset.h index e792e9d..856c55e 100644 --- a/include/crucible/lockset.h +++ b/include/crucible/lockset.h @@ -61,7 +61,6 @@ namespace crucible { size_t size(); bool empty(); set_type copy(); - void wait_unlock(double interval); void max_size(size_t max); @@ -145,15 +144,6 @@ namespace crucible { THROW_CHECK1(invalid_argument, erase_count, erase_count == 1); } - template - void - LockSet::wait_unlock(double interval) - { - unique_lock lock(m_mutex); - if (m_set.empty()) return; - m_condvar.wait_for(lock, chrono::duration(interval)); - } - template size_t LockSet::size()