From e35b9f8a3ea093586a19b2c8e5d0a6cb2cbe4627 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 4 Mar 2025 16:17:29 +0100 Subject: [PATCH] Remove dead code --- gtk2_ardour/step_editor.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gtk2_ardour/step_editor.cc b/gtk2_ardour/step_editor.cc index 7e00e1365e..e8c150aac0 100644 --- a/gtk2_ardour/step_editor.cc +++ b/gtk2_ardour/step_editor.cc @@ -281,13 +281,6 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Tem if (beat_duration == 0.0) { beat_duration = StepEntry::instance().note_length(); - } else if (beat_duration == 0.0) { - bool success; - beat_duration = _editor.get_draw_length_as_beats (success, step_edit_insert_position); - - if (!success) { - return -1; - } } MidiStreamView* msv = _mtv.midi_view();