From: xie xingguo Date: Mon, 26 Dec 2016 07:07:40 +0000 (+0800) Subject: os/bluestore/BitAllocator: kill decr_idx() method X-Git-Tag: v12.0.0~182^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=16e2f2e9838ae8ae047a5ac62730b9af4ae13472;p=ceph.git os/bluestore/BitAllocator: kill decr_idx() method Which has no consumers. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BitAllocator.cc b/src/os/bluestore/BitAllocator.cc index 105e622c6d12..17c9670a7ed5 100644 --- a/src/os/bluestore/BitAllocator.cc +++ b/src/os/bluestore/BitAllocator.cc @@ -104,12 +104,6 @@ int64_t BmapEntityListIter::index() return m_cur_idx; } -void BmapEntityListIter::decr_idx() -{ - m_cur_idx--; - alloc_assert(m_cur_idx >= 0); -} - /* * Bitmap Entry functions. */ diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index 38150fbd40e2..bb4789b83244 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -133,10 +133,6 @@ public: int64_t index() { return m_cur_idx; } - void decr_idx() { - m_cur_idx--; - alloc_assert(m_cur_idx >= 0); - } }; typedef unsigned long bmap_t; @@ -314,7 +310,6 @@ public: BitMapArea *next(); int64_t index(); - void decr_idx(); }; typedef mempool::bluestore_alloc::vector BmapEntryVector;