mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Removed unused function that serves no purpose (#3854)
This commit is contained in:
parent
422f35938a
commit
cb0a30c22b
@ -14,26 +14,6 @@ static scheduled_fn_t* sLastUnused = 0;
|
||||
|
||||
static int sCount = 0;
|
||||
|
||||
static void init_lists() __attribute__((unused));
|
||||
static void init_lists()
|
||||
{
|
||||
if (sCount != 0) {
|
||||
return;
|
||||
}
|
||||
while (sCount < SCHEDULED_FN_INITIAL_COUNT) {
|
||||
scheduled_fn_t* it = new scheduled_fn_t;
|
||||
if (sCount == 0) {
|
||||
sFirstUnused = it;
|
||||
}
|
||||
else {
|
||||
sLastUnused->mNext = it;
|
||||
}
|
||||
sLastUnused = it;
|
||||
++sCount;
|
||||
}
|
||||
sLastUnused->mNext = NULL;
|
||||
}
|
||||
|
||||
static scheduled_fn_t* get_fn() {
|
||||
scheduled_fn_t* result = NULL;
|
||||
// try to get an item from unused items list
|
||||
|
Loading…
x
Reference in New Issue
Block a user