summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMargaret Matocha <ksmatocha@gmail.com>2020-07-28 15:03:51 -0500
committerMargaret Matocha <ksmatocha@gmail.com>2020-07-28 15:03:51 -0500
commit0887bc2112147f661f9c16d8afbd240cac5ec456 (patch)
tree99c6fe33ff1164d18aa1e1b7af47a4ad6bf8ae50
parent076c5f946f1239a593ae8a51d4d8648ef6620406 (diff)
parentdb26e894fbded0abee713138dc16b63a047aba52 (diff)
Updated to remove else statment, attempt to remove excess mpy-cross... file
-rw-r--r--shared-bindings/displayio/Group.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c
index f50145324..d49d32962 100644
--- a/shared-bindings/displayio/Group.c
+++ b/shared-bindings/displayio/Group.c
@@ -218,11 +218,9 @@ STATIC mp_obj_t displayio_group_obj_insert(mp_obj_t self_in, mp_obj_t index_obj,
if ((size_t) MP_OBJ_SMALL_INT_VALUE(index_obj) == common_hal_displayio_group_get_len(self)){
return displayio_group_obj_append(self_in, layer);
}
-
size_t index = mp_get_index(&displayio_group_type, common_hal_displayio_group_get_len(self), index_obj, false);
common_hal_displayio_group_insert(self, index, layer);
return mp_const_none;
-
}
MP_DEFINE_CONST_FUN_OBJ_3(displayio_group_insert_obj, displayio_group_obj_insert);