From: Ondrej Kozina Date: Thu, 31 Jan 2013 09:55:53 +0000 (+0100) Subject: - remove unused find() method in XAttributes class X-Git-Tag: v0.1.3~18^2~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa4af5005936bfe0b3cd8246a1fb70e7a4cff183;p=thirdparty%2Fsnapper.git - remove unused find() method in XAttributes class --- diff --git a/snapper/XAttributes.cc b/snapper/XAttributes.cc index a53018d5..aeb1afd1 100644 --- a/snapper/XAttributes.cc +++ b/snapper/XAttributes.cc @@ -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) diff --git a/snapper/XAttributes.h b/snapper/XAttributes.h index 0ab0b879..4dadcf7c 100644 --- a/snapper/XAttributes.h +++ b/snapper/XAttributes.h @@ -42,7 +42,6 @@ namespace snapper typedef vector xa_value_t; typedef map xa_map_t; typedef pair xa_pair_t; - typedef pair xa_find_pair_t; typedef vector 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;