]> sourceware.org Git - libabigail.git/commitdiff
ir: remove redundant cycle detection code in equals
authorDodji Seketeli <dodji@redhat.com>
Mon, 10 Oct 2022 10:37:15 +0000 (12:37 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 10 Oct 2022 10:37:15 +0000 (12:37 +0200)
While looking at something else, I realized that in the overload for
the equals() function for class_or_union, the cycle detection
management code was redundant for the case where we are looking
comparing a decl-only class to another class.

This patch removes that redundant code.

* src/abg-ir.cc (equals):  In the overload for class_or_union
remove redundant cycle detection code when comparison a decl-only
class to another class.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc

index 2cb74339de6a86db8493a760d2a91575f76a35ac..e6b8409adc6f2d17f76d833afb2f047791956b48 100644 (file)
@@ -22240,10 +22240,6 @@ equals(const class_or_union& l, const class_or_union& r, change_kind* k)
            }
        }
 
-      RETURN_TRUE_IF_COMPARISON_CYCLE_DETECTED(l, r);
-
-      mark_types_as_being_compared(l, r);
-
       bool val = *def1 == *def2;
       if (!val)
        if (k)
This page took 0.055861 seconds and 5 git commands to generate.