From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 0F4B3383665A for ; Thu, 26 May 2022 12:36:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F4B3383665A Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-439-IxK_kZL8Pf2PXBFn-A3qnQ-1; Thu, 26 May 2022 08:36:34 -0400 X-MC-Unique: IxK_kZL8Pf2PXBFn-A3qnQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 719F438349B5; Thu, 26 May 2022 12:36:34 +0000 (UTC) Received: from localhost (unknown [10.33.36.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3AF18400F38; Thu, 26 May 2022 12:36:34 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed 2/3] libstdc++: Remove some unnecessary includes Date: Thu, 26 May 2022 13:36:31 +0100 Message-Id: <20220526123632.1284224-2-jwakely@redhat.com> In-Reply-To: <20220526123632.1284224-1-jwakely@redhat.com> References: <20220526123632.1284224-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.1 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_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 12:36:39 -0000 Tested powerpc64le-linux, pushed to trunk. -- >8 -- These headers do not use anything in directly, and it's included by and anyway, because they do need it. libstdc++-v3/ChangeLog: * include/bits/ranges_algobase.h: Do not include . * include/std/string: Likewise. * include/std/variant: Likewise. --- libstdc++-v3/include/bits/ranges_algobase.h | 1 - libstdc++-v3/include/std/string | 1 - libstdc++-v3/include/std/variant | 1 - 3 files changed, 3 deletions(-) diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index 1bbc44fc668..f6f0b9c83b0 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -33,7 +33,6 @@ #if __cplusplus > 201703L #include -#include #include #include #include // ranges::begin, ranges::range etc. diff --git a/libstdc++-v3/include/std/string b/libstdc++-v3/include/std/string index 24051663f74..4a0633067bd 100644 --- a/libstdc++-v3/include/std/string +++ b/libstdc++-v3/include/std/string @@ -42,7 +42,6 @@ #include #include // For operators >>, <<, and getline. #include -#include #include #include #include // For less diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index beed396fccb..c5f25ef6b47 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include // in_place_index_t -- 2.34.3