From patchwork Thu Aug 1 21:12:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1968045 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=akXeqnxh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WZhZN0Wlyz1yZv for ; Fri, 2 Aug 2024 07:15:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5178B3858D3C for ; Thu, 1 Aug 2024 21:15:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id BCA9A3858408 for ; Thu, 1 Aug 2024 21:12:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCA9A3858408 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BCA9A3858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722546780; cv=none; b=giGgAXtbXTdpVdzTsYQlWmR2xbHBxHfuFodhN+IrpzRJ9pk/TmjRd72VS/fh7bdpKs2aNsk2sWdaHLc8fXX4n2yHbSAHNJSU9ze49UzL9Fy8UR2m8ML5b7ahHDvVuYi5Z2gaUA3OL56drUm1PFyJrDps7oYqOBsnz5/TBfXo27s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722546780; c=relaxed/simple; bh=753JRF+FC8s3zh8lfa8VrUuva7ydepe4TTw+T1j15aw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rb9mgibAFkETGpgrR+RWV2vYvFDFjd4Vv+lspiD0Luz/vljcDF+LUDLstumSvob+ukFJRDt1heHrSFqRVCJvXFmyKGGNfzjtDSAQqk8lrPvCuS7rhnKYgmf94zjewqmmP9MtjRZFfNJUSnbtVacqjNCeSFbP/jTRpv+PJLR+lXY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722546775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xIZPfYKrBH60auYRqXgIt66sM7I9TFDaWzRFttAB/Aw=; b=akXeqnxhrAbzOJKhH6X5EMvekFzgcjqdFBFM6J/tkQRVFfRRgn4d+N+5f9AljsAsyVv032 XAj8RSj0M5xcVQoKboAlnOPDSZeFU8xK14Rxu8Do7W7cIdKDRZQqvtfuTLB/WJsjQwclfz lNLxR05FERuMkWp18yBoj6YxLttGGmk= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-67-TupUfhLlPEK9DpvZTKvJCw-1; Thu, 01 Aug 2024 17:12:54 -0400 X-MC-Unique: TupUfhLlPEK9DpvZTKvJCw-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 553D71955D4B; Thu, 1 Aug 2024 21:12:53 +0000 (UTC) Received: from localhost (unknown [10.42.28.21]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B109219560AE; Thu, 1 Aug 2024 21:12:52 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove unused helper traits Date: Thu, 1 Aug 2024 22:12:46 +0100 Message-ID: <20240801211251.386567-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.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_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. Pushed to trunk. -- >8 -- These are not used anywhere, we have more efficient variable templates for them instead. They're not documented as extensions, and are easy for users to write if they need them. libstdc++-v3/ChangeLog: * include/bits/utility.h (__is_in_place_type): Remove. * include/std/variant (__is_in_place_tag): Remove. --- libstdc++-v3/include/bits/utility.h | 3 --- libstdc++-v3/include/std/variant | 7 ------- 2 files changed, 10 deletions(-) diff --git a/libstdc++-v3/include/bits/utility.h b/libstdc++-v3/include/bits/utility.h index 44c74333e92..751ff7b9a27 100644 --- a/libstdc++-v3/include/bits/utility.h +++ b/libstdc++-v3/include/bits/utility.h @@ -220,9 +220,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template inline constexpr bool __is_in_place_type_v> = true; - template - using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; - template inline constexpr bool __is_in_place_index_v = false; diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index d0f7bd0242f..12108d07f0b 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1488,13 +1488,6 @@ namespace __detail::__variant using _Traits = __detail::__variant::_Traits<_Types...>; - template - struct __is_in_place_tag : false_type { }; - template - struct __is_in_place_tag> : true_type { }; - template - struct __is_in_place_tag> : true_type { }; - template static constexpr bool __not_in_place_tag = !__is_in_place_type_v<__remove_cvref_t<_Tp>>