]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- remove unused copy constructor and assign operator 14/head
authorOndrej Kozina <okozina@redhat.com>
Fri, 19 Apr 2013 08:14:42 +0000 (10:14 +0200)
committerOndrej Kozina <okozina@redhat.com>
Fri, 19 Apr 2013 08:14:42 +0000 (10:14 +0200)
snapper/XAttributes.cc
snapper/XAttributes.h

index 6eaa27c9a429183db5933f541904901bc5585f8e..dba1a122b2a966e4e5d613e8dffe23d068a796e1 100644 (file)
@@ -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
index bda88a062686c95dbd60bb3d7f3105242e6dbd7b..0b679ab9388883faa81d9ffadb6d42421117821d 100644 (file)
@@ -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;
        };