summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-21 11:46:27 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-21 11:46:27 +1100
commite4af71212550d950269f6991be187f41dcf64eee (patch)
tree7602453f297f001f6ed7d96073d73836af323f6f /py/obj.h
parent67f3edc10af1833218af680835f75a3e2d0473e7 (diff)
downloadmicropython-e4af71212550d950269f6991be187f41dcf64eee.tar.gz
micropython-e4af71212550d950269f6991be187f41dcf64eee.zip
py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl.
And also simplify it to remove the check for small int. This can be done because this function is only ever called if the argument is not a small int.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/py/obj.h b/py/obj.h
index 61db65a9a2..6106bbe19a 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -680,9 +680,6 @@ void mp_obj_cell_set(mp_obj_t self_in, mp_obj_t obj);
mp_int_t mp_obj_int_get_truncated(mp_const_obj_t self_in);
// Will raise exception if value doesn't fit into mp_int_t
mp_int_t mp_obj_int_get_checked(mp_const_obj_t self_in);
-#if MICROPY_PY_BUILTINS_FLOAT
-mp_float_t mp_obj_int_as_float(mp_obj_t self_in);
-#endif
// exception
#define mp_obj_is_native_exception_instance(o) (mp_obj_get_type(o)->make_new == mp_obj_exception_make_new)