summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorDave Astels <dastels@daveastels.com>2019-08-20 12:25:56 -0400
committerDave Astels <dastels@daveastels.com>2019-08-20 12:25:56 -0400
commitf3d476aad85ba497c060f44dee3009d018802b0e (patch)
treed5ee7796acc1d09e82717e38048a7dd48b7101fd /shared-bindings
parent53bb95a0233baa8cae7bbb36f2887a9475c1e37f (diff)
Remove temporarily comments code
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/displayio/Display.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c
index 508d10ea4..df6dde53a 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"));