From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 185803860C32; Fri, 18 Jun 2021 13:11:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 185803860C32 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9942] libstdc++: Remove unused helpers for std::variant X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: 98efaa7ea4d24355024eae7874309efd60baf97e X-Git-Newrev: 49b41ca3d010c7e394e3d71bf2f71c556cee70f3 Message-Id: <20210618131118.185803860C32@sourceware.org> Date: Fri, 18 Jun 2021 13:11:18 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2021 13:11:18 -0000 https://gcc.gnu.org/g:49b41ca3d010c7e394e3d71bf2f71c556cee70f3 commit r10-9942-g49b41ca3d010c7e394e3d71bf2f71c556cee70f3 Author: Jonathan Wakely Date: Fri Jun 18 14:07:57 2021 +0100 libstdc++: Remove unused helpers for std::variant The r10-9937-g8ad4d9b46944db1be6f1b216b5b8e74bd9f66937 backport brought these helpers from the gcc-11 branch, but they aren't needed for the std::variant implementation in the gcc-10 branch. * include/std/variant (__same_types, __check_visitor_results): Remove. Diff: --- libstdc++-v3/include/std/variant | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index 5f76d76490e..660b7fbc31c 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1061,17 +1061,6 @@ namespace __variant using __visit_result_t = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; - template - constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); - - template - constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) - { - return __same_types< - invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... - >; - } - } // namespace __variant } // namespace __detail