]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- remove unused find() method in XAttributes class
authorOndrej Kozina <okozina@redhat.com>
Thu, 31 Jan 2013 09:55:53 +0000 (10:55 +0100)
committerOndrej Kozina <okozina@redhat.com>
Wed, 27 Feb 2013 16:24:57 +0000 (17:24 +0100)
snapper/XAttributes.cc
snapper/XAttributes.h

index a53018d55d8e3926031f82f501cfb0aac20ca1e0..aeb1afd1f45ba4d7bddcba5f3192197e81ff3951 100644 (file)
@@ -98,18 +98,6 @@ namespace snapper
         y2deb("Starting copy constructor XAttribute(const XAttribute&)");
         xamap = xa.xamap;
     }
-    
-    xa_find_pair_t
-    XAttributes::find(const string &xa_name) const
-    {
-        xa_map_citer cit = xamap.find(xa_name);
-        if (cit != xamap.end())
-        {
-            return xa_find_pair_t(true, cit->second);
-        }
-        
-        return xa_find_pair_t(false, xa_value_t());
-    }
 
     XAttributes&
     XAttributes::operator=(const XAttributes &xa)
index 0ab0b8798c0819e531414a70b03f4fe70e4b0edd..4dadcf7c8854e84d0255bc9adfc30bc8a2e3fe8c 100644 (file)
@@ -42,7 +42,6 @@ namespace snapper
        typedef vector<uint8_t> xa_value_t;
        typedef map<string, xa_value_t> xa_map_t;
        typedef pair<string, xa_value_t> xa_pair_t;
-        typedef pair<bool, xa_value_t> xa_find_pair_t;
         typedef vector<xa_pair_t> xa_mod_vec_t;
 
         // this is ordered on purpose!
@@ -78,7 +77,6 @@ namespace snapper
 
             xa_map_citer cbegin() const { return xamap.begin(); }
             xa_map_citer cend() const { return xamap.end(); }
-            xa_find_pair_t find(const string&) const;
 
             XAttributes& operator=(const XAttributes&);
             bool operator==(const XAttributes&) const;