Skip to content

Commit 46dae6e

Browse files
Drop get_property_or_default_to for now
1 parent a6f440b commit 46dae6e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

sycl/include/sycl/ext/oneapi/properties/new_properties.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,6 @@ class __SYCL_EBO properties<
287287
return get_property_impl(detail::key<property_key_t>);
288288
}
289289

290-
// TODO: Do we need separate `static` overload if we decide to keep this
291-
// interface?
292-
template <typename property_key_t, typename default_property_t>
293-
constexpr auto
294-
get_property_or_default_to(default_property_t default_property) {
295-
if constexpr (has_property<property_key_t>())
296-
return get_property<property_key_t>();
297-
else
298-
return default_property;
299-
}
300-
301290
// TODO: Use more effective insert sort for single-property insertion.
302291

303292
// Need to use qualified type to force CTAD instead of using *current*

0 commit comments

Comments
 (0)