Skip to content

Commit 02dc164

Browse files
committed
extmod/moductypes: Remove double blank lines and debugging printf's.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 4791d29 commit 02dc164

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

extmod/moductypes.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,8 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
391391
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(deref);
392392
mp_uint_t val_type = GET_TYPE(offset, VAL_TYPE_BITS);
393393
offset &= VALUE_MASK(VAL_TYPE_BITS);
394-
// printf("scalar type=%d offset=%x\n", val_type, offset);
395394

396395
if (val_type <= INT64 || val_type == FLOAT32 || val_type == FLOAT64) {
397-
// printf("size=%d\n", GET_SCALAR_SIZE(val_type));
398396
if (self->flags == LAYOUT_NATIVE) {
399397
if (set_val == MP_OBJ_NULL) {
400398
return get_aligned(val_type, self->addr + offset, 0);
@@ -461,7 +459,6 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
461459
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(sub->items[0]);
462460
mp_uint_t agg_type = GET_TYPE(offset, AGG_TYPE_BITS);
463461
offset &= VALUE_MASK(AGG_TYPE_BITS);
464-
// printf("agg type=%d offset=%x\n", agg_type, offset);
465462

466463
switch (agg_type) {
467464
case STRUCT: {
@@ -486,7 +483,6 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
486483
o->desc = MP_OBJ_FROM_PTR(sub);
487484
o->addr = self->addr + offset;
488485
o->flags = self->flags;
489-
// printf("PTR/ARR base addr=%p\n", o->addr);
490486
return MP_OBJ_FROM_PTR(o);
491487
}
492488
}
@@ -642,7 +638,6 @@ STATIC mp_obj_t uctypes_struct_bytes_at(mp_obj_t ptr, mp_obj_t size) {
642638
}
643639
MP_DEFINE_CONST_FUN_OBJ_2(uctypes_struct_bytes_at_obj, uctypes_struct_bytes_at);
644640

645-
646641
STATIC const mp_obj_type_t uctypes_struct_type = {
647642
{ &mp_type_type },
648643
.name = MP_QSTR_struct,
@@ -719,7 +714,6 @@ STATIC const mp_rom_map_elem_t mp_module_uctypes_globals_table[] = {
719714
{ MP_ROM_QSTR(MP_QSTR_PTR), MP_ROM_INT(TYPE2SMALLINT(PTR, AGG_TYPE_BITS)) },
720715
{ MP_ROM_QSTR(MP_QSTR_ARRAY), MP_ROM_INT(TYPE2SMALLINT(ARRAY, AGG_TYPE_BITS)) },
721716
};
722-
723717
STATIC MP_DEFINE_CONST_DICT(mp_module_uctypes_globals, mp_module_uctypes_globals_table);
724718

725719
const mp_obj_module_t mp_module_uctypes = {

0 commit comments

Comments
 (0)