From 65e41a2cbde50e40f0dda1641a0c672b1d49cb87 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Wed, 14 Mar 2018 07:26:11 +0100 Subject: [PATCH] Remove unused identity utilities --- include/continuable/detail/traits.hpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/include/continuable/detail/traits.hpp b/include/continuable/detail/traits.hpp index ffd91e9..231f44d 100644 --- a/include/continuable/detail/traits.hpp +++ b/include/continuable/detail/traits.hpp @@ -41,10 +41,6 @@ namespace cti { namespace detail { namespace traits { -/// Evaluates to the element at position I. -template -using at_t = decltype(std::get(std::declval>())); - namespace detail { template struct index_of_impl; @@ -64,31 +60,16 @@ using index_of_t = detail::index_of_impl; /// A tagging type for wrapping other types template struct identity {}; -template -struct identity : std::common_type {}; template struct is_identity : std::false_type {}; template struct is_identity> : std::true_type {}; -template -constexpr identity> identity_of(T const& /*type*/) noexcept { - return {}; -} -template -constexpr identity identity_of(identity /*type*/) noexcept { - return {}; -} template using identify = std::conditional_t>::value, T, identity>>; -template -constexpr auto get(identity) noexcept { - return identify>{}; -} - #if defined(CONTINUABLE_HAS_CXX17_VOID_T) using std::void_t; #else