From patchwork Tue Mar 1 11:05:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 51468 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 E24233858C78 for ; Tue, 1 Mar 2022 11:05:14 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by sourceware.org (Postfix) with ESMTPS id A34EC3858000 for ; Tue, 1 Mar 2022 11:05:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A34EC3858000 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=seketeli.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=seketeli.org Received: (Authenticated sender: dodji@seketeli.org) by mail.gandi.net (Postfix) with ESMTPSA id 478BB100004 for ; Tue, 1 Mar 2022 11:05:09 +0000 (UTC) Received: by localhost (Postfix, from userid 1000) id 249995802B4; Tue, 1 Mar 2022 12:05:09 +0100 (CET) From: Dodji Seketeli To: libabigail@sourceware.org Subject: [PATCH] ir: Remove obsolete comment from enumerator equal operator Organization: Me, myself and I X-Operating-System: Fedora 36 X-URL: http://www.seketeli.net/~dodji Date: Tue, 01 Mar 2022 12:05:08 +0100 Message-ID: <87czj6j5ln.fsf@seketeli.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" Hello, While looking at something else, I realized that some parts of the comment of the equal operator of enumerator are obsolete. I am removing it. * src/abg-ir.cc (enum_type_decl::enumerator::operator==): Remove the obsolete parts from the comment. Signed-off-by: Dodji Seketeli --- src/abg-ir.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 4afe2d61..1554be68 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -17735,15 +17735,6 @@ enum_type_decl::enumerator::operator=(const enumerator& o) } /// Equality operator /// -/// When environment::use_enum_binary_only_equality() is true, this -/// equality operator only cares about the value of the enumerator. -/// It doesn't take the name of the enumerator into account. This is -/// the ABI-oriented default equality operator. -/// -/// When the environment::use_enum_binary_only_equality() is false -/// however, then this equality operator also takes the name of the -/// enumerator into account as well as the value. -/// /// @param other the enumerator to compare to the current /// instance of enum_type_decl::enumerator. ///