10000 RGBMatrix: Remove unused, dead allocation · dastels/circuitpython@3c08333 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c08333

Browse files
committed
RGBMatrix: Remove unused, dead allocation
@tannewt noticed this in a pull request review. The allocated memory was never used, but the GC would have collected it eventually.
1 parent 71c63c2 commit 3c08333

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

shared-module/rgbmatrix/RGBMatrix.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self,
6969
common_hal_rgbmatrix_timer_disable(self->timer);
7070
if (framebuffer) {
7171
self->framebuffer = framebuffer;
72-
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);
7372
mp_get_buffer_raise(self->framebuffer, &self->bufinfo, MP_BUFFER_READ);
7473
if (mp_get_buffer(self->framebuffer, &self->bufinfo, MP_BUFFER_RW)) {
7574
self->bufinfo.typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW;

0 commit comments

Comments
 (0)
0