[applied] ir: misc cleanups

Message ID 87cz82bgp0.fsf@redhat.com
State New
Headers
Series [applied] ir: misc cleanups |

Commit Message

Dodji Seketeli Dec. 29, 2022, 11:19 a.m. UTC
  Hello,

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 | 6 ------
 1 file changed, 6 deletions(-)
  

Patch

diff --git a/include/abg-ir.h b/include/abg-ir.h
index 68321588..498e1a2f 100644
--- a/include/abg-ir.h
+++ b/include/abg-ir.h
@@ -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