diff options
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/unix/main.c b/unix/main.c index a7e4a907e3..5a7ea1c038 100644 --- a/unix/main.c +++ b/unix/main.c @@ -247,15 +247,6 @@ mp_obj_t qstr_info(void) { return mp_const_none; } -#if MICROPY_ENABLE_GC -// TODO: this doesn't belong here -STATIC mp_obj_t pyb_gc(void) { - gc_collect(); - return mp_const_none; -} -MP_DEFINE_CONST_FUN_OBJ_0(pyb_gc_obj, pyb_gc); -#endif - // Process options which set interpreter init options void pre_process_options(int argc, char **argv) { for (int a = 1; a < argc; a++) { @@ -338,9 +329,6 @@ int main(int argc, char **argv) { mp_store_name(qstr_from_str("mem_info"), mp_make_function_n(0, mem_info)); mp_store_name(qstr_from_str("qstr_info"), mp_make_function_n(0, qstr_info)); -#if MICROPY_ENABLE_GC - mp_store_name(qstr_from_str("gc"), (mp_obj_t)&pyb_gc_obj); -#endif // Here is some example code to create a class and instance of that class. // First is the Python, then the C code. |