Skip to content

Commit d5a6746

Browse files
remove dead code
1 parent 0325324 commit d5a6746

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ inline constexpr bool properties_are_sorted = []() constexpr {
132132
} else {
133133
const std::array sort_keys = {property_tys::property_name...};
134134
// std::is_sorted isn't constexpr until C++20.
135-
if (sort_keys.empty())
136-
return true;
137135
for (std::size_t idx = 1; idx < sort_keys.size(); ++idx)
138136
if (sort_keys[idx - 1] >= sort_keys[idx])
139137
return false;

0 commit comments

Comments
 (0)