]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
SimpleLock.h: remove unused private function clear_more()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 1 May 2014 22:08:41 +0000 (00:08 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 2 May 2014 23:35:28 +0000 (01:35 +0200)
Remove unused private function clear_more(), it's replaced by
try_clear_more().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/SimpleLock.h

index 2cfc99997ddf357c49f0e9ede79b816892e621b3..f96895e34c8882b28e16d6075f52a985441eb4b0 100644 (file)
@@ -197,13 +197,6 @@ private:
       _unstable = new unstable_bits_t;
     return _unstable;
   }
-  void clear_more() {
-    if (_unstable) {
-      assert(_unstable->empty());
-      delete _unstable;
-      _unstable = NULL;
-    }
-  }
   void try_clear_more() {
     if (_unstable && _unstable->empty()) {
       delete _unstable;