Skip to content

Commit

Permalink
Remove things deprecated in the Traits namespace
Browse files Browse the repository at this point in the history
725c247 (03/2022)
e36f758 (05/2020)
  • Loading branch information
aprokop committed May 1, 2024
1 parent 8c400a0 commit b7ec1b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
25 changes: 0 additions & 25 deletions src/details/ArborX_AccessTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,31 +248,6 @@ struct AccessTraits<Details::AccessValuesI<Values, Tag>, Tag>
static decltype(auto) size(AccessValues const &w) { return w.size(); }
};

namespace Traits
{
using PredicatesTag [[deprecated("Use ArborX::PredicatesTag instead.")]] =
::ArborX::PredicatesTag;
using PrimitivesTag [[deprecated("Use ArborX::PrimitivesTag instead.")]] =
::ArborX::PrimitivesTag;
template <typename T, typename Tag, typename Enable = void>
struct Access
{
using not_specialized = void;
};
} // namespace Traits
template <typename T, typename Tag>
struct AccessTraits<
T, Tag,
std::enable_if_t<!Kokkos::is_detected<
AccessTraitsNotSpecializedArchetypeAlias, Traits::Access<T, Tag>>{}>>
: Traits::Access<T, Tag>
{
template <class U>
static constexpr bool always_false = std::is_void_v<U>;
static_assert(
always_false<T>,
"ArborX::Traits::Access was removed. Use ArborX::AccessTraits instead");
};
} // namespace ArborX

#endif
11 changes: 0 additions & 11 deletions test/tstCompileOnlyAccessTraits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@ struct ArborX::AccessTraits<SizeMemberFunctionNotStatic, Tag>
int size(SizeMemberFunctionNotStatic) { return 255; }
};

// Ensure legacy access traits are still valid
struct LegacyAccessTraits
{};
template <typename Tag>
struct ArborX::Traits::Access<LegacyAccessTraits, Tag>
{
using memory_space = Kokkos::HostSpace;
static int size(LegacyAccessTraits) { return 0; }
static Point get(LegacyAccessTraits, int) { return {}; }
};

template <class V, class Tag>
using deduce_type_t =
decltype(ArborX::AccessTraits<V, Tag>::get(std::declval<V>(), 0));
Expand Down

0 comments on commit b7ec1b4

Please sign in to comment.