From f3d476aad85ba497c060f44dee3009d018802b0e Mon Sep 17 00:00:00 2001 From: Dave Astels Date: Tue, 20 Aug 2019 12:25:56 -0400 Subject: [PATCH] Remove temporarily comments code --- shared-bindings/displayio/Display.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c index 508d10ea41..df6dde53a3 100644 --- a/shared-bindings/displayio/Display.c +++ b/shared-bindings/displayio/Display.c @@ -421,30 +421,14 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po size_t result_buffer_size = bufinfo.len; if (result_buffer_size >= (buffer_size * 4)) { - // Allocated and shared as a uint32_t array so the compiler knows the - // alignment everywhere. - /* uint32_t buffer[buffer_size]; */ volatile uint32_t mask_length = (pixels_per_buffer / 32) + 1; uint32_t mask[mask_length]; for (uint16_t k = 0; k < mask_length; k++) { mask[k] = 0x00000000; } - /* for (uint16_t k = 0; k < buffer_size; k++) { */ - /* buffer[k] = 0x00000000; */ - /* } */ - displayio_display_fill_area(self, &area, mask, result_buffer); - /* int byte_offset = 0; */ - /* for (int word_offset = 0; word_offset < buffer_size; word_offset++) { */ - /* uint32_t word = buffer[word_offset]; */ - /* for (int byte_count = 0; byte_count < 4; byte_count++) { */ - /* array_subscr(result, MP_OBJ_NEW_SMALL_INT(byte_offset), MP_OBJ_NEW_SMALL_INT(word & 0x000000FF)); */ - /* word >>= 8; */ - /* byte_offset++; */ - /* } */ - /* } */ return result; } else { mp_raise_ValueError(translate("Buffer is too small"));