Skip to content

Commit 98fd762

Browse files
committed
Remove am_pal_run_all() as redundant
1 parent 920f491 commit 98fd762

File tree

6 files changed

+0
-48
lines changed

6 files changed

+0
-48
lines changed

libs/ao/preemptive/port.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ bool am_ao_run_all(void) {
7777
am_pal_mutex_unlock(me->startup_mutex);
7878
me->startup_complete = true;
7979
}
80-
am_pal_run_all(AM_PAL_RUN_ALL_DEFAULT);
8180
/* wait all AOs to complete */
8281
am_pal_task_wait(AM_PAL_TASK_ID_MAIN);
8382
return false;

libs/pal/freertos/pal.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,3 @@ void am_pal_sleep_ms(int ms) {
166166
am_pal_time_get_tick_from_ms(AM_PAL_TICK_DOMAIN_DEFAULT, ms);
167167
vTaskDelay(ticks);
168168
}
169-
170-
int am_pal_run_all(enum am_pal_run_all_mode mode) {
171-
(void)mode;
172-
return 0;
173-
}

libs/pal/libuv/pal.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,3 @@ void am_pal_on_idle(void) {
306306
am_pal_task_wait(am_pal_task_get_own_id());
307307
am_pal_crit_enter();
308308
}
309-
310-
int am_pal_run_all(enum am_pal_run_all_mode mode) {
311-
int rc;
312-
switch (mode) {
313-
case AM_PAL_RUN_ALL_DEFAULT:
314-
rc = uv_run(loop_, UV_RUN_DEFAULT);
315-
break;
316-
case AM_PAL_RUN_ALL_NOBLOCK:
317-
rc = uv_run(loop_, UV_RUN_NOWAIT);
318-
break;
319-
default:
320-
AM_ASSERT(0);
321-
}
322-
return rc;
323-
}

libs/pal/pal.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -235,23 +235,6 @@ void am_pal_flush(void);
235235
*/
236236
void am_pal_on_idle(void);
237237

238-
/** PAL run all modes */
239-
enum am_pal_run_all_mode {
240-
/** default mode */
241-
AM_PAL_RUN_ALL_DEFAULT,
242-
/** non blocking mode */
243-
AM_PAL_RUN_ALL_NOBLOCK,
244-
};
245-
246-
/**
247-
* Run PAL bookkeeping.
248-
*
249-
* @param mode the bookkeeping mode
250-
* @retval 0 all done
251-
* @retval !=0 call again
252-
*/
253-
int am_pal_run_all(enum am_pal_run_all_mode mode);
254-
255238
#ifdef __cplusplus
256239
}
257240
#endif

libs/pal/posix/pal.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,3 @@ void am_pal_on_idle(void) {
437437
am_pal_task_wait(task);
438438
am_pal_crit_enter();
439439
}
440-
441-
int am_pal_run_all(enum am_pal_run_all_mode mode) {
442-
(void)mode;
443-
return 0;
444-
}

libs/pal/stubs/pal.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,3 @@ AM_PRINTF(1, 2) int am_pal_printf(const char *fmt, ...) {
9292
}
9393

9494
void am_pal_flush(void) {}
95-
96-
int am_pal_run_all(enum am_pal_run_all_mode mode) {
97-
(void)mode;
98-
return 0;
99-
}

0 commit comments

Comments
 (0)