Skip to content

Commit c9ed948

Browse files
committed
remove_sum_of
1 parent e0b7124 commit c9ed948

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cores/arduino/zephyrCommon.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ inline int global_gpio_pin_configure(pin_size_t pinNumber, int flags) {
6868
return gpio_pin_configure(local_gpio_port(pinNumber), local_gpio_pin(pinNumber), flags);
6969
}
7070

71-
template <class N, class Head> constexpr const N sum_of_list(const N sum, const Head &head)
72-
{
73-
return sum + head;
74-
}
75-
76-
template <class N, class Head, class... Tail>
77-
constexpr const N sum_of_list(const N sum, const Head &head, const Tail &...tail)
78-
{
79-
return sum_of_list(sum + head, tail...);
80-
}
81-
8271
template <class N, class Head> constexpr const N max_in_list(const N max, const Head &head)
8372
{
8473
return (max >= head) ? max : head;
@@ -93,8 +82,6 @@ constexpr const N max_in_list(const N max, const Head &head, const Tail &...tail
9382
#define GPIO_NGPIOS(n, p, i) DT_PROP(DT_GPIO_CTLR_BY_IDX(n, p, i), ngpios)
9483
constexpr int max_ngpios = max_in_list(
9584
0, DT_FOREACH_PROP_ELEM_SEP(DT_PATH(zephyr_user), digital_pin_gpios, GPIO_NGPIOS, (, )));
96-
constexpr int sum_ngpios = sum_of_list(
97-
0, DT_FOREACH_PROP_ELEM_SEP(DT_PATH(zephyr_user), digital_pin_gpios, GPIO_NGPIOS, (, )));
9885

9986
/*
10087
* GPIO callback implementation

0 commit comments

Comments
 (0)