1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

Piano: Remove some unused code.

This commit is contained in:
Andreas Kling 2019-07-13 23:02:07 +02:00
parent 173edcc5ae
commit 3eeb0734ba
2 changed files with 0 additions and 14 deletions

View file

@ -7,7 +7,6 @@
PianoWidget::PianoWidget()
{
memset(keys, 0, sizeof(keys));
m_bitmap = GraphicsBitmap::create(GraphicsBitmap::Format::RGB32, { m_width, m_height });
m_front_buffer = new Sample[2048];
m_back_buffer = new Sample[2048];
}
@ -353,12 +352,3 @@ void PianoWidget::render_knobs(GPainter& painter)
painter.draw_rect(wave_knob_rect, Color(r, g, b));
painter.draw_text(wave_knob_rect, wave_name, TextAlignment::Center, Color(r, g, b));
}
void PianoWidget::event(CEvent& event)
{
if (event.type() == CEvent::Custom) {
dbg() << "Piano got custom event!";
update();
}
GWidget::event(event);
}