diff --git a/sycl/include/sycl/detail/generic_type_traits.hpp b/sycl/include/sycl/detail/generic_type_traits.hpp index 95d9fb650325e..89d1dd6f3a0ad 100644 --- a/sycl/include/sycl/detail/generic_type_traits.hpp +++ b/sycl/include/sycl/detail/generic_type_traits.hpp @@ -253,29 +253,6 @@ template inline constexpr bool msbIsSet(const T x) { return (x & msbMask(x)); } -// Try to get vector element count or 1 otherwise -template struct GetNumElements { - static constexpr int value = 1; -}; -template -struct GetNumElements> { - static constexpr int value = NumElements; -}; - -// TryToGetElementType::type is T::element_type or T::value_type if those -// exist, otherwise T. -template class TryToGetElementType { - static T check(...); - template static typename A::element_type check(const A &); - template >> - static typename A::value_type check(const A &); - -public: - using type = decltype(check(T())); - static constexpr bool value = !std::is_same_v; -}; - template static constexpr T max_v() { return (std::numeric_limits::max)(); } diff --git a/sycl/include/sycl/detail/type_traits.hpp b/sycl/include/sycl/detail/type_traits.hpp index 51c638baaa075..c81d0d7b1b640 100644 --- a/sycl/include/sycl/detail/type_traits.hpp +++ b/sycl/include/sycl/detail/type_traits.hpp @@ -375,32 +375,6 @@ struct is_multi_ptr> template inline constexpr bool is_multi_ptr_v = is_multi_ptr::value; -// is_non_legacy_multi_ptr -template struct is_non_legacy_multi_ptr : std::false_type {}; - -template -struct is_non_legacy_multi_ptr< - multi_ptr> : std::true_type {}; - -template -struct is_non_legacy_multi_ptr< - multi_ptr> : std::true_type {}; - -template -inline constexpr bool is_non_legacy_multi_ptr_v = - is_non_legacy_multi_ptr::value; - -// is_legacy_multi_ptr -template struct is_legacy_multi_ptr : std::false_type {}; - -template -struct is_legacy_multi_ptr< - multi_ptr> : std::true_type { -}; - -template -inline constexpr bool is_legacy_multi_ptr_v = is_legacy_multi_ptr::value; - // remove_pointer_t template struct remove_pointer_impl { using type = T;