diff options
author | Damien George <damien.p.george@gmail.com> | 2018-02-15 16:50:02 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-15 16:50:02 +1100 |
commit | 73d1d20b46dda54340ad2819b865f47ca25f4850 (patch) | |
tree | 64cd0a93d6874531c914bcedbccfae52e2c0566e /py/objexcept.c | |
parent | d966a334869760215c19378d009800aeaaa1baec (diff) |
py/objexcept: Remove long-obsolete mp_const_MemoryError_obj.
This constant exception instance was once used by m_malloc_fail() to raise
a MemoryError without allocating memory, but it was made obsolete long ago
by 3556e45711c3b7ec712748d013e678d035185bdd. The functionality is now
replaced by the use of mp_emergency_exception_obj which lives in the global
uPy state, and which can handle any exception type, not just MemoryError.
Diffstat (limited to 'py/objexcept.c')
-rw-r--r-- | py/objexcept.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index 524f105ce..ccb0bad0d 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -43,9 +43,6 @@ // Number of traceback entries to reserve in the emergency exception buffer #define EMG_TRACEBACK_ALLOC (2 * TRACEBACK_ENTRY_LEN) -// Instance of MemoryError exception - needed by mp_malloc_fail -const mp_obj_exception_t mp_const_MemoryError_obj = {{&mp_type_MemoryError}, 0, 0, NULL, (mp_obj_tuple_t*)&mp_const_empty_tuple_obj}; - // Optionally allocated buffer for storing the first argument of an exception // allocated when the heap is locked. #if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF |