From: Dodji Seketeli Date: Wed, 28 Dec 2022 11:51:38 +0000 (+0100) Subject: ir: misc cleanups X-Git-Tag: upstream/2.3~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a32ff22c2ce3cef9a9174f9e7e9520ef9cd3ab9;p=platform%2Fupstream%2Flibabigail.git ir: misc cleanups 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 --- 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