diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index 1f441f7551..af10f64a17 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -3862,18 +3862,6 @@ MidiView::nudge_notes (bool forward, bool fine) apply_note_diff (); } -void -MidiView::change_channel(uint8_t channel) -{ - start_note_diff_command(_("change channel")); - for (Selection::iterator i = _selection.begin(); i != _selection.end(); ++i) { - note_diff_add_change (*i, MidiModel::NoteDiffCommand::Channel, channel); - } - - apply_note_diff(); -} - - void MidiView::note_entered (NoteBase* ev) { diff --git a/gtk2_ardour/midi_view.h b/gtk2_ardour/midi_view.h index 29e6364008..53fb6b762f 100644 --- a/gtk2_ardour/midi_view.h +++ b/gtk2_ardour/midi_view.h @@ -276,11 +276,6 @@ class MidiView : public virtual sigc::trackable, public LineMerger void finish_resizing (NoteBase* primary, bool at_front, double delat_x, bool relative, double snap_delta, bool with_snap); void abort_resizing (); - /** Change the channel of the selection. - * @param channel - the channel number of the new channel, zero-based - */ - void change_channel(uint8_t channel); - struct NoteResizeData { ::Note *note; ArdourCanvas::Rectangle *resize_rect; diff --git a/gtk2_ardour/note_base.cc b/gtk2_ardour/note_base.cc index 4897e575e5..eb9af11836 100644 --- a/gtk2_ardour/note_base.cc +++ b/gtk2_ardour/note_base.cc @@ -157,13 +157,6 @@ NoteBase::on_channel_selection_change(uint16_t selection) _item->show(); } -void -NoteBase::on_channel_change(uint8_t channel) -{ - _region.note_selected(this, true); - _region.change_channel(channel); -} - void NoteBase::set_selected(bool selected) { diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h index 22e0b637c4..717fb8bb31 100644 --- a/gtk2_ardour/note_base.h +++ b/gtk2_ardour/note_base.h @@ -91,9 +91,6 @@ class NoteBase : public sigc::trackable void show_velocity(); void hide_velocity(); - /** Channel changed for this specific event */ - void on_channel_change(uint8_t channel); - /** Channel selection changed */ void on_channel_selection_change(uint16_t selection);