From: Ondrej Kozina Date: Fri, 19 Apr 2013 08:14:42 +0000 (+0200) Subject: - remove unused copy constructor and assign operator X-Git-Tag: v0.1.3~11^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14%2Fhead;p=thirdparty%2Fsnapper.git - remove unused copy constructor and assign operator --- diff --git a/snapper/XAttributes.cc b/snapper/XAttributes.cc index 6eaa27c9..dba1a122 100644 --- a/snapper/XAttributes.cc +++ b/snapper/XAttributes.cc @@ -98,23 +98,6 @@ namespace snapper } } - XAttributes::XAttributes(const XAttributes &xa) - { - y2deb("Entering copy constructor XAttribute(const XAttribute&)"); - xamap = xa.xamap; - } - - XAttributes& - XAttributes::operator=(const XAttributes &xa) - { - y2deb("Entering XAttribute::operator=()"); - if (this != &xa) - { - this->xamap = xa.xamap; - } - - return *this; - } bool XAttributes::operator==(const XAttributes& xa) const diff --git a/snapper/XAttributes.h b/snapper/XAttributes.h index bda88a06..0b679ab9 100644 --- a/snapper/XAttributes.h +++ b/snapper/XAttributes.h @@ -55,12 +55,10 @@ namespace snapper xa_map_t xamap; public: XAttributes(const string&); - XAttributes(const XAttributes&); xa_map_citer cbegin() const { return xamap.begin(); } xa_map_citer cend() const { return xamap.end(); } - XAttributes& operator=(const XAttributes&); bool operator==(const XAttributes&) const; };