Skip to content

Commit ceb74ff

Browse files
committed
Removed unused function.
Checked for usage within repository using `grep -rnw . -e "init_lists"`. No occurances (excepting this one) found, however, have kept as separate commit for exclusion is required. Removed warnings as per #2183
1 parent 77f2492 commit ceb74ff

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

cores/esp8266/Schedule.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ static scheduled_fn_t* sLastUnused = 0;
1414

1515
static int sCount = 0;
1616

17-
static void init_lists()
18-
{
19-
if (sCount != 0) {
20-
return;
21-
}
22-
while (sCount < SCHEDULED_FN_INITIAL_COUNT) {
23-
scheduled_fn_t* it = new scheduled_fn_t;
24-
if (sCount == 0) {
25-
sFirstUnused = it;
26-
}
27-
else {
28-
sLastUnused->mNext = it;
29-
}
30-
sLastUnused = it;
31-
++sCount;
32-
}
33-
sLastUnused->mNext = NULL;
34-
}
35-
3617
static scheduled_fn_t* get_fn() {
3718
scheduled_fn_t* result = NULL;
3819
// try to get an item from unused items list

0 commit comments

Comments
 (0)