13
0

Remove redundant MidiRegionView::start_remove_command.

git-svn-id: svn://localhost/ardour2/branches/3.0@3140 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-03-10 22:32:36 +00:00
parent ff5709e895
commit bdbe392325
3 changed files with 3 additions and 8 deletions

View File

@ -79,7 +79,7 @@ CanvasMidiEvent::on_event(GdkEvent* ev)
if (_note && ev->key.keyval == GDK_Delete) {
cerr << "EV DELETE KEY\n";
selected(true);
_region.start_remove_command();
_region.start_delta_command();
_region.command_remove_note(this);
}
break;
@ -188,7 +188,7 @@ CanvasMidiEvent::on_event(GdkEvent* ev)
else
_region.note_selected(this, select_mod);
} else if (_region.midi_view()->editor.current_midi_edit_mode() == Editing::MidiEditErase) {
_region.start_remove_command();
_region.start_delta_command();
_region.command_remove_note(this);
_region.apply_command();
}

View File

@ -156,7 +156,7 @@ MidiRegionView::canvas_event(GdkEvent* ev)
delete_mod = true;
original_mode = trackview.editor.current_midi_edit_mode();
trackview.editor.set_midi_edit_mode(MidiEditErase);
start_remove_command();
start_delta_command();
_mouse_state = EraseTouchDragging;
return true;
} else if (ev->key.keyval == GDK_Shift_L || ev->key.keyval == GDK_Control_L) {

View File

@ -91,11 +91,6 @@ class MidiRegionView : public RegionView
/* This stuff is a bit boilerplatey ATM. Work in progress. */
inline void start_remove_command() {
if (!_delta_command)
_delta_command = _model->new_delta_command();
}
inline void start_delta_command() {
if (!_delta_command)
_delta_command = _model->new_delta_command();