From 4234101a15c6949b3b5962ac48e18043718907ad Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 12 Sep 2018 23:28:27 +0200 Subject: [PATCH] common: drop the unused reset_comparator() from SharedLRU. Signed-off-by: Radoslaw Zarzynski --- src/common/shared_cache.hpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/common/shared_cache.hpp b/src/common/shared_cache.hpp index 20914d6349c81..b8623d9de09e3 100644 --- a/src/common/shared_cache.hpp +++ b/src/common/shared_cache.hpp @@ -128,20 +128,6 @@ public: return size; } - /// adjust container comparator (for purposes of get_next sort order) - void reset_comparator(C comp) { - // get_next uses weak_refs; that's the only container we need to - // reorder. - map, C> temp; - - std::lock_guard locker{lock}; - temp.swap(weak_refs); - - // reconstruct with new comparator - weak_refs = map, C>(comp); - weak_refs.insert(temp.begin(), temp.end()); - } - void set_cct(CephContext *c) { cct = c; } -- 2.39.5