Skip to content

Commit 68e3532

Browse files
committed
Cleanup commented code
1 parent 0c27bd8 commit 68e3532

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

shared-module/displayio/__init__.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ primary_display_t *allocate_display(void) {
471471
for (uint8_t i = 0; i < max_num_displays; i++) {
472472
if (!is_display_active(DYN_DISPLAYS_ADR(i, display_base))) {
473473
// Clear this memory so it is in a known state before init.
474-
// memset(DYN_DISPLAYS_ADR0(i), 0, sizeof(DYN_DISPLAYS(i)));
475474
memset(DYN_DISPLAYS_ADR0(i), 0, sizeof(displays[0]));
476475
// Default to None so that it works as board.DISPLAY.
477476
#if CIRCUITPY_OS_GETENV && CIRCUITPY_SET_DISPLAY_LIMIT
@@ -502,7 +501,6 @@ primary_display_bus_t *allocate_display_bus(void) {
502501
mp_const_obj_t display_bus_type = DYN_DISPLAY_BUSES(i).bus_base.type;
503502
if (display_bus_type == NULL || display_bus_type == &mp_type_NoneType) {
504503
// Clear this memory so it is in a known state before init.
505-
// memset(DYN_DISPLAY_BUSES_ADR0(i), 0, sizeof(DYN_DISPLAY_BUSES(i)));
506504
memset(DYN_DISPLAY_BUSES_ADR0(i), 0, sizeof(display_buses[0]));
507505
#if CIRCUITPY_OS_GETENV && CIRCUITPY_SET_DISPLAY_LIMIT
508506
if (i < CIRCUITPY_DISPLAY_LIMIT) {

0 commit comments

Comments
 (0)