]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer.h: Removed unnecessary copy constructor and assignment operator
authorMichal Jarzabek <stiopa@gmail.com>
Wed, 13 May 2015 18:57:32 +0000 (19:57 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Wed, 13 May 2015 19:00:49 +0000 (20:00 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/include/buffer.h

index 6b1da01d4e09b4633d271caf90404bdcbbb728c7..7f3fa645aad9992de4d62bdaf1da6de9ba2604af 100644 (file)
@@ -284,23 +284,6 @@ public:
       iterator(list *l, unsigned o, std::list<ptr>::iterator ip, unsigned po) : 
        bl(l), ls(&bl->_buffers), off(o), p(ip), p_off(po) { }
 
-      iterator(const iterator& other) : bl(other.bl),
-                                       ls(other.ls),
-                                       off(other.off),
-                                       p(other.p),
-                                       p_off(other.p_off) {}
-
-      iterator& operator=(const iterator& other) {
-       if (this != &other) {
-         bl = other.bl;
-         ls = other.ls;
-         off = other.off;
-         p = other.p;
-         p_off = other.p_off;
-       }
-       return *this;
-      }
-
       /// get current iterator offset in buffer::list
       unsigned get_off() { return off; }