From: Radoslaw Zarzynski Date: Wed, 12 Sep 2018 21:28:27 +0000 (+0200) Subject: common: drop the unused reset_comparator() from SharedLRU. X-Git-Tag: v14.1.0~232^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26224%2Fhead;p=ceph.git common: drop the unused reset_comparator() from SharedLRU. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/common/shared_cache.hpp b/src/common/shared_cache.hpp index 20914d6349c8..b8623d9de09e 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; }