From 516982242df9eff369f5b2eb9e320f48ba19cdc2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 3 Sep 2015 23:01:07 +0100 Subject: py: Inline single use of mp_obj_str_get_len in mp_obj_len_maybe. Gets rid of redundant double check for string type. Also remove obsolete declaration of mp_obj_str_get_hash. --- py/obj.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'py/obj.h') diff --git a/py/obj.h b/py/obj.h index 10a678e83..08fc334c9 100644 --- a/py/obj.h +++ b/py/obj.h @@ -560,8 +560,6 @@ void mp_init_emergency_exception_buf(void); // str bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2); -mp_uint_t mp_obj_str_get_hash(mp_obj_t self_in); -mp_uint_t mp_obj_str_get_len(mp_obj_t self_in); qstr mp_obj_str_get_qstr(mp_obj_t self_in); // use this if you will anyway convert the string to a qstr const char *mp_obj_str_get_str(mp_obj_t self_in); // use this only if you need the string to be null terminated const char *mp_obj_str_get_data(mp_obj_t self_in, mp_uint_t *len); -- cgit v1.2.3