From patchwork Thu Dec 29 11:19:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 62474 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 17FF13858C66 for ; Thu, 29 Dec 2022 11:19:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17FF13858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672312779; bh=JjGzg45BzRvPXHNDk0hHZA/TjdmOe8BC2zBEzzIKVfc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:From; b=aP8hviohJJaQXR1xWoyg1aYySwqJTyvY3t9vwLKYH155xY5BvM+qTUvFHlgszWdyI Sd0HYOH2MG/FCIDCJUZ5d5Zhu+5IRp3RmXzVI1iS56GC3BlJrvN57loAZFgZu0qRPt Xt88UeISFdPx+22Iv+ijYmEH0u349igLDbirwmvI= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 842D93858D20 for ; Thu, 29 Dec 2022 11:19:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 842D93858D20 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-194-DX3JHajBPBiKdeyIUAfHGQ-1; Thu, 29 Dec 2022 06:19:28 -0500 X-MC-Unique: DX3JHajBPBiKdeyIUAfHGQ-1 Received: by mail-qv1-f69.google.com with SMTP id a15-20020ad441cf000000b004c79ef7689aso9855404qvq.14 for ; Thu, 29 Dec 2022 03:19:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:organization:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JjGzg45BzRvPXHNDk0hHZA/TjdmOe8BC2zBEzzIKVfc=; b=v+MfJVDL5pKpcx6WH8Br2dVmx6TkaPyUtmT5dViiQ3vqp6dvW+5WSTAy49Dfb5/Rv4 aUVf99WLrPocRYDEsRS50HjAlTXcPY3AAf0sQXNnUOqYGInK8w9TVJqxbAvtfynIex5T qD+weIQp1KUm6PIG62oEYz/c3beOiqJoWaxP4okmUs++j7D6kUVtJoeKbY6fJgVp+Sj3 W2UgQdxxuz3Y7UXJgkwqSbaxvkO/rNx7xLK2VbVxndiCKOx48X/YT7X+Itq8dWfD4EFv OzxPdrwONLFoPuC5DKImbTpfqvLi57kZf5Tq4cfRPdY0HAGx6XCz6F1V8AEaT71Txm1P N80w== X-Gm-Message-State: AFqh2koOjjUvwn68MDprA0NAv0fkMyfYBuHEyfdam4McOTOg1zYYqxu6 JGj49cRWzCJm7WARmPYqdlDwF8LTDAYVVtC50363s2QjhDONEpAcT5kbXHhZCJIrrWfEZ9Tt1WY 4O7I8Ij7srPOgfqjrb9GTVt1ANubTnb26Yr/YhIRupZFKWBOO3cFJSYq+ej4tee+8pFDC X-Received: by 2002:a05:6214:10e8:b0:4c7:8271:d0fa with SMTP id q8-20020a05621410e800b004c78271d0famr51193883qvt.24.1672312768245; Thu, 29 Dec 2022 03:19:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXsC92crmAi9n52w1lPyiFjP8cIlflUBx+Rpm82YmDqESDxNCU34IT4az11tTniWj4bzoGrZDQ== X-Received: by 2002:a05:6214:10e8:b0:4c7:8271:d0fa with SMTP id q8-20020a05621410e800b004c78271d0famr51193862qvt.24.1672312767924; Thu, 29 Dec 2022 03:19:27 -0800 (PST) Received: from localhost ([88.120.130.27]) by smtp.gmail.com with ESMTPSA id u2-20020a37ab02000000b006fc92cf4703sm12666033qke.132.2022.12.29.03.19.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 03:19:27 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id AF304A2E7E; Thu, 29 Dec 2022 12:19:23 +0100 (CET) To: libabigail@sourceware.org Subject: [PATCH, applied] ir: misc cleanups Organization: Red Hat / France X-Operating-System: CentOS Stream release 9 X-URL: http://www.redhat.com Date: Thu, 29 Dec 2022 12:19:23 +0100 Message-ID: <87cz82bgp0.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Dodji Seketeli via Libabigail From: Dodji Seketeli Reply-To: Dodji Seketeli Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" 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 --- include/abg-ir.h | 6 ------ 1 file changed, 6 deletions(-) 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