summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-15 16:50:02 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-15 16:50:02 +1100
commit73d1d20b46dda54340ad2819b865f47ca25f4850 (patch)
tree64cd0a93d6874531c914bcedbccfae52e2c0566e /py/obj.h
parentd966a334869760215c19378d009800aeaaa1baec (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/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 10cb48961..2e715253c 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -624,7 +624,6 @@ extern const struct _mp_obj_str_t mp_const_empty_bytes_obj;
extern const struct _mp_obj_tuple_t mp_const_empty_tuple_obj;
extern const struct _mp_obj_singleton_t mp_const_ellipsis_obj;
extern const struct _mp_obj_singleton_t mp_const_notimplemented_obj;
-extern const struct _mp_obj_exception_t mp_const_MemoryError_obj;
extern const struct _mp_obj_exception_t mp_const_GeneratorExit_obj;
// General API for objects