]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BitAllocator: kill decr_idx() method
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 26 Dec 2016 07:07:40 +0000 (15:07 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 29 Dec 2016 11:25:50 +0000 (19:25 +0800)
Which has no consumers.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitAllocator.cc
src/os/bluestore/BitAllocator.h

index 105e622c6d12700d7f792991b2fa8f00803a5c8f..17c9670a7ed5ba22dc74f28d3cb2c26bd13c7053 100644 (file)
@@ -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.
  */
index 38150fbd40e2ca7301d30d876695b75df34aa7f2..bb4789b832442309ec4d20790e2403294c73d099 100644 (file)
@@ -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<BmapEntry> BmapEntryVector;