From: Michal Jarzabek Date: Wed, 13 May 2015 18:57:32 +0000 (+0100) Subject: buffer.h: Removed unnecessary copy constructor and assignment operator X-Git-Tag: v9.0.2~166^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b45f2e17f9edd6aded535b9f57c64f48ab68b6e;p=ceph.git buffer.h: Removed unnecessary copy constructor and assignment operator Signed-off-by: Michal Jarzabek --- diff --git a/src/include/buffer.h b/src/include/buffer.h index 6b1da01d4e09..7f3fa645aad9 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -284,23 +284,6 @@ public: iterator(list *l, unsigned o, std::list::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; }