From e9cb1f807762f8adc1f5b6220b616ce6daf1303f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 26 Jan 2017 23:30:38 +1100 Subject: py/objmodule: Move module init/deinit code into runtime functions. They are one-line functions and having them inline in mp_init/mp_deinit eliminates the overhead of a function call, and matches how other state is initialised in mp_init. --- py/objmodule.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'py/objmodule.h') diff --git a/py/objmodule.h b/py/objmodule.h index 937ff8416..4e6612adc 100644 --- a/py/objmodule.h +++ b/py/objmodule.h @@ -31,8 +31,6 @@ extern const mp_map_t mp_builtin_module_map; extern const mp_map_t mp_builtin_module_weak_links_map; -void mp_module_init(void); -void mp_module_deinit(void); mp_obj_t mp_module_get(qstr module_name); void mp_module_register(qstr qstr, mp_obj_t module); -- cgit v1.2.3