remove unused methods related to channel changing for MIDI notes

This commit is contained in:
Paul Davis
2025-03-04 11:30:07 -07:00
parent e4b38b33b9
commit e34fd3cc3b
4 changed files with 0 additions and 27 deletions

View File

@@ -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)
{

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -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);