Skip to content

Commit 7a9a73e

Browse files
committed
zephyr/main: Remove unused do_str() function.
The artifact of initial porting effort.
1 parent 096e967 commit 7a9a73e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

ports/zephyr/main.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,6 @@
5151
static char *stack_top;
5252
static char heap[MICROPY_HEAP_SIZE];
5353

54-
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
55-
nlr_buf_t nlr;
56-
if (nlr_push(&nlr) == 0) {
57-
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
58-
qstr source_name = lex->source_name;
59-
mp_parse_tree_t parse_tree = mp_parse(lex, input_kind);
60-
mp_obj_t module_fun = mp_compile(&parse_tree, source_name, MP_EMIT_OPT_NONE, true);
61-
mp_call_function_0(module_fun);
62-
nlr_pop();
63-
} else {
64-
// uncaught exception
65-
mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val);
66-
}
67-
}
68-
6954
void init_zephyr(void) {
7055
// We now rely on CONFIG_NET_APP_SETTINGS to set up bootstrap
7156
// network addresses.

0 commit comments

Comments
 (0)