X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fghostregion.cc;h=27ab4334a900f9b6d1c0307045bcdd0209d7737f;hb=459eda7e11e4b8fa9767dc8a3e2b1228dc54078e;hp=4cb14f661abc435c27482bdd510b454d21c6b7be;hpb=c75b17e3bab17b852ab69868bbfdffd7ad1f73bf;p=ardour.git diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 4cb14f661a..27ab4334a9 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -20,7 +20,6 @@ #include "evoral/Note.hpp" #include "ardour_ui.h" #include "automation_time_axis.h" -#include "canvas-hit.h" #include "canvas-note.h" #include "ghostregion.h" #include "midi_streamview.h" @@ -187,12 +186,13 @@ MidiGhostRegion::MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, d MidiGhostRegion::~MidiGhostRegion() { - //clear_events(); + clear_events (); } MidiGhostRegion::Event::Event(ArdourCanvas::CanvasNoteEvent* e) : event(e) { + } MidiGhostRegion::Note::Note(ArdourCanvas::CanvasNote* n, ArdourCanvas::Group* g) @@ -203,17 +203,7 @@ MidiGhostRegion::Note::Note(ArdourCanvas::CanvasNote* n, ArdourCanvas::Group* g) MidiGhostRegion::Note::~Note() { - //delete rect; -} - -MidiGhostRegion::Hit::Hit(ArdourCanvas::CanvasHit* h, ArdourCanvas::Group*) - : Event(h) -{ - cerr << "Hit ghost item does not work yet" << endl; -} - -MidiGhostRegion::Hit::~Hit() -{ + delete rect; } void @@ -308,12 +298,6 @@ MidiGhostRegion::add_note(ArdourCanvas::CanvasNote* n) } } -void -MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* /*h*/) -{ - //events.push_back(new Hit(h, group)); -} - void MidiGhostRegion::clear_events() {