From e51aff8fe17da6b211000cd39b3557d186fae517 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Fri, 19 Apr 2013 10:14:42 +0200 Subject: [PATCH] - remove unused copy constructor and assign operator --- snapper/XAttributes.cc | 17 ----------------- snapper/XAttributes.h | 2 -- 2 files changed, 19 deletions(-) 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; }; -- 2.47.3