Skip to content

Commit 6b7c8d3

Browse files
committed
py/runtime: Remove commented-out code from mp_deinit().
These commented-out lines of code have been unused for a long time, so remove them to avoid confusion as to why they are there. mp_obj_dict_free() never existed, this line was converted from mp_map_deinit() and commented out as soon as it was added. The call to mp_map_deinit(mp_loaded_modules_map) was commented in 1a1d11f. Fixes issue adafruit#3507. Signed-off-by: Damien George <[email protected]>
1 parent 1d95282 commit 6b7c8d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

py/runtime.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ void mp_deinit(void) {
155155
#ifdef MICROPY_PORT_DEINIT_FUNC
156156
MICROPY_PORT_DEINIT_FUNC;
157157
#endif
158-
159-
// mp_obj_dict_free(&dict_main);
160-
// mp_map_deinit(&MP_STATE_VM(mp_loaded_modules_map));
161158
}
162159

163160
mp_obj_t mp_load_name(qstr qst) {

0 commit comments

Comments
 (0)