Remove unneeded "post_boot_py"

This was only used in espressif but became a no-op in
5e26862b2c so it should just be removed.
This commit is contained in:
Jeff Epler 2025-04-16 18:12:06 +02:00
parent 8f7496c069
commit 26ab62b040
6 changed files with 0 additions and 31 deletions

4
main.c
View file

@ -903,12 +903,8 @@ static void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
#endif
}
port_post_boot_py(true);
cleanup_after_vm(_exec_result.exception);
_exec_result.exception = NULL;
port_post_boot_py(false);
}
static int run_repl(safe_mode_t safe_mode) {

View file

@ -509,12 +509,6 @@ void port_boot_info(void) {
}
#endif
void port_post_boot_py(bool heap_valid) {
if (!heap_valid && filesystem_present()) {
}
}
// Wrap main in app_main that the IDF expects.
extern void main(void);
extern void app_main(void);

View file

@ -300,7 +300,6 @@ async def build_circuitpython():
portdir / "common-hal/microcontroller/Pin.c",
portdir / "common-hal/microcontroller/Processor.c",
portdir / "common-hal/os/__init__.c",
"supervisor/stub/misc.c",
"shared/readline/readline.c",
"shared/runtime/context_manager_helpers.c",
"shared/runtime/pyexec.c",

View file

@ -95,12 +95,6 @@ void port_wake_main_task_from_isr(void);
// CircuitPython task when others are done.
void port_yield(void);
// Some ports need special handling just after completing boot.py execution.
// This function is called once while boot.py's VM is still valid, and
// then a second time after the VM is finalized.
// A default weak implementation is provided that does nothing.
void port_post_boot_py(bool heap_valid);
// Some ports want to add information to boot_out.txt.
// A default weak implementation is provided that does nothing.
void port_boot_info(void);

View file

@ -1,13 +0,0 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2022 Jeff Epler for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#include "stdbool.h"
#include "supervisor/port.h"
#include "py/mpconfig.h"
MP_WEAK void port_post_boot_py(bool heap_valid) {
}

View file

@ -19,7 +19,6 @@ SRC_SUPERVISOR = \
supervisor/shared/traceback.c \
supervisor/shared/translate/translate.c \
supervisor/shared/workflow.c \
supervisor/stub/misc.c \
# For tlsf
CFLAGS += -D_DEBUG=0