Misc style fixes

* src/abg-hash.cc (class_decl:#️⃣:operator()): Remove some dead
	code.
	* src/abg-ir.cc (equals): In the overload for class_decl,
	re-indent.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2015-09-02 15:35:17 +02:00
parent 4fb1cb6263
commit 4028c8ec97
2 changed files with 5 additions and 8 deletions

View File

@ -613,9 +613,6 @@ class_decl::hash::operator()(const class_decl& t) const
assert(!t.get_is_declaration_only());
std::tr1::hash<string> hash_string;
#if 0
type_base::dynamic_hash hash_type;
#endif
scope_type_decl::hash hash_scope_type;
class_decl::base_spec::hash hash_base;
var_decl::hash hash_data_member;

View File

@ -10404,12 +10404,12 @@ equals(const class_decl& l, const class_decl& r, change_kind* k)
RETURN(false);
}
for(class_decl::base_specs::const_iterator
b0 = l.get_base_specifiers().begin(),
b1 = r.get_base_specifiers().begin();
(b0 != l.get_base_specifiers().end()
for (class_decl::base_specs::const_iterator
b0 = l.get_base_specifiers().begin(),
b1 = r.get_base_specifiers().begin();
(b0 != l.get_base_specifiers().end()
&& b1 != r.get_base_specifiers().end());
++b0, ++b1)
++b0, ++b1)
if (*b0 != *b1)
{
result = false;