Skip to content

Commit cb0a30c

Browse files
authored
Removed unused function that serves no purpose (#3854)
1 parent 422f359 commit cb0a30c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cores/esp8266/Schedule.cpp

-20
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ static scheduled_fn_t* sLastUnused = 0;
1414

1515
static int sCount = 0;
1616

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

0 commit comments

Comments
 (0)