]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
dlist: clean up interface
authorSage Weil <sage@newdream.net>
Fri, 12 Mar 2010 23:26:15 +0000 (15:26 -0800)
committerSage Weil <sage@newdream.net>
Fri, 12 Mar 2010 23:56:53 +0000 (15:56 -0800)
src/include/dlist.h

index faa3ab55bc0c74ad197f9771a93d8c2d302afbe6..fc37f5f8551299cc438fcd7ab826060e87769ae3 100644 (file)
@@ -24,7 +24,7 @@ public:
     
     item(T i) : _item(i), _prev(this), _next(this) {}
     ~item() { 
-      assert(!is_on_dlist());
+      assert(!is_on_list());
     }
     // no copying!
     item(const item& other);
@@ -32,7 +32,8 @@ public:
 
     
     bool empty() { return _prev == this; }
-    bool is_on_dlist() { return !empty(); }
+    bool is_on_list() { return !empty(); }
+
     bool remove_myself() {
       if (_next == this) {
        assert(_prev == this);