From 53d291cd0b790b0c369f156d922c328cc7631992 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Mon, 10 Feb 2014 15:06:29 +0100 Subject: [PATCH] Remove too eager asserts * src/abg-comparison.cc (class_diff::ensure_lookup_tables_populated): Do not assert that the same member type cannot be deleted/inserted twice. It actually can for, pointers, references, typedefs, etc. Signed-off-by: Dodji Seketeli --- src/abg-comparison.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/abg-comparison.cc b/src/abg-comparison.cc index 4410009e..15671ef4 100644 --- a/src/abg-comparison.cc +++ b/src/abg-comparison.cc @@ -1718,8 +1718,6 @@ class_diff::ensure_lookup_tables_populated(void) const if (klass_decl && klass_decl->is_declaration_only()) continue; string qname = d->get_qualified_name(); - assert(priv_->deleted_member_types_.find(qname) - == priv_->deleted_member_types_.end()); priv_->deleted_member_types_[qname] = d; } @@ -1739,8 +1737,6 @@ class_diff::ensure_lookup_tables_populated(void) const if (klass_decl && klass_decl->is_declaration_only()) continue; string qname = d->get_qualified_name(); - assert(priv_->inserted_member_types_.find(qname) - == priv_->inserted_member_types_.end()); string_decl_base_sptr_map::const_iterator j = priv_->deleted_member_types_.find(qname); if (j != priv_->deleted_member_types_.end())