From patchwork Tue May 5 18:14:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuliano Procida X-Patchwork-Id: 39223 From: gprocida@google.com (Giuliano Procida) Date: Tue, 5 May 2020 19:14:35 +0100 Subject: [PATCH] abg-reader.cc: Remove key_replacement_type_map. Message-ID: <20200505181435.235986-1-gprocida@google.com> This patch removes this unused function. * src/abg-reader.cc (key_replacement_type_map): Drop unused function. Signed-off-by: Giuliano Procida Reviewed-by: Matthias Maennich --- src/abg-reader.cc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/abg-reader.cc b/src/abg-reader.cc index d7c48919..5583a31c 100644 --- a/src/abg-reader.cc +++ b/src/abg-reader.cc @@ -571,30 +571,6 @@ public: return true; } - /// Associate an ID with a type. - /// - /// If ID is an id for an existing type, this function replaces the - /// exising type with the new DEFINITION type passe in argument. - /// - /// @param definition the type to associate witht he ID. - /// - /// @param id the ID to associate to the type. - /// - /// @return true upon successful completion, false otherwise. Note - /// that this returns false if the was already associate to an ID - /// before. - bool - key_replacement_of_type_decl(shared_ptr definition, - const string& id) - { - const_types_map_it i = m_types_map.find(id); - if (i != m_types_map.end()) - m_types_map.erase(i); - key_type_decl(definition, id); - - return true; - } - /// Associate an ID to a function template. /// /// @param fn_tmpl_decl the function template to consider.