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.
This commit is contained in:
Jeff Epler 2020-09-01 10:58:54 -05:00
parent 71c63c2812
commit 3c083330f8
1 changed files with 0 additions and 1 deletions

View File

@ -69,7 +69,6 @@ void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self,
common_hal_rgbmatrix_timer_disable(self->timer);
if (framebuffer) {
self->framebuffer = framebuffer;
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);
mp_get_buffer_raise(self->framebuffer, &self->bufinfo, MP_BUFFER_READ);
if (mp_get_buffer(self->framebuffer, &self->bufinfo, MP_BUFFER_RW)) {
self->bufinfo.typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW;