py/objtype: Don't expose mp_obj_instance_attr().

mp_obj_is_instance_type() can be used instead to check for instance types.
This commit is contained in:
Damien George
2018-05-25 17:08:09 +10:00
parent db5d8c97f1
commit bace1a16d0
3 changed files with 3 additions and 6 deletions

View File

@@ -42,9 +42,6 @@ typedef struct _mp_obj_instance_t {
mp_obj_instance_t *mp_obj_new_instance(const mp_obj_type_t *cls, const mp_obj_type_t **native_base);
#endif
// this needs to be exposed for MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE to work
void mp_obj_instance_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest);
// these need to be exposed so mp_obj_is_callable can work correctly
bool mp_obj_instance_is_callable(mp_obj_t self_in);
mp_obj_t mp_obj_instance_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args);