ir: misc cleanups
authorDodji Seketeli <dodji@redhat.com>
Wed, 28 Dec 2022 11:51:38 +0000 (12:51 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 29 Dec 2022 10:27:57 +0000 (11:27 +0100)
When looking at something else, I noticed some useless friend function
declaration.  Namely, the "canonicalize()" function is declared friend
to the decl_base and scope_decl clases, which is now useless.

This patch removes those declarations.

* include/abg-ir.h (decl_base, scope_decl): Remove the declaration
of canonicalize() as friend to these classes.

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

index 68321588e9efaf91cfa32133999d80fa2aac5b8a..498e1a2fc06c01e4f64cbddc497e846d028d2759 100644 (file)
@@ -1684,9 +1684,6 @@ public:
   void
   set_is_declaration_only(bool f);
 
-  friend type_base_sptr
-  canonicalize(type_base_sptr);
-
   friend bool
   equals(const decl_base&, const decl_base&, change_kind*);
 
@@ -1884,9 +1881,6 @@ public:
 
   friend void
   remove_decl_from_scope(decl_base_sptr decl);
-
-  friend type_base_sptr
-  canonicalize(type_base_sptr);
 };//end class scope_decl
 
 bool