Skip to content

Commit 3b1358c

Browse files
committed
address clang tidy
Signed-off-by: Nitish Bharambe <[email protected]>
1 parent 63cdfcc commit 3b1358c

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/main_core/core_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace power_grid_model::main_core::utils {
1515
namespace detail {
1616

1717
template <typename Tuple, class Functor, std::size_t... Indices>
18-
constexpr void run_functor_with_tuple_index_return_void(Functor functor, std::index_sequence<Indices...>) {
18+
constexpr void run_functor_with_tuple_index_return_void(Functor functor, std::index_sequence<Indices...> /*unused*/) {
1919
(functor.template operator()<std::tuple_element_t<Indices, Tuple>>(), ...);
2020
}
2121

power_grid_model_c/power_grid_model/include/power_grid_model/main_core/main_model_type.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,14 @@ template <typename Tuple>
2525
using tuple_type_identities_to_tuple_types_t = typename tuple_type_identities_to_tuple_types<Tuple>::type;
2626

2727
template <typename... Types, typename... SelectTypes>
28-
constexpr auto filter_tuple_types(std::tuple<std::type_identity<Types>...> /* types*/,
29-
std::tuple<std::type_identity<SelectTypes>...> /* select_types*/) {
28+
constexpr auto filter_tuple_types(std::tuple<std::type_identity<Types>...> /*unused*/,
29+
std::tuple<std::type_identity<SelectTypes>...> /*unused*/) {
3030
constexpr auto sub_type_in_type = []<typename T>() { return (std::is_same_v<T, SelectTypes> || ...); };
3131

3232
return std::tuple_cat(std::conditional_t<sub_type_in_type.template operator()<Types>(),
3333
std::tuple<std::type_identity<Types>>, std::tuple<>>{}...);
3434
}
3535

36-
template <typename Tuple, class Functor, std::size_t... Indices>
37-
constexpr void run_functor_with_tuple_index_return_void(Functor functor, std::index_sequence<Indices...>) {
38-
(functor.template operator()<std::tuple_element_t<Indices, Tuple>>(), ...);
39-
}
40-
4136
} // namespace detail
4237

4338
template <class T, class U> struct MainModelType;

0 commit comments

Comments
 (0)