Remove some unused code.
[ardour.git] / gtk2_ardour / ghostregion.cc
index 1ce5b690939a1c7a4e183ef9ae007f6621e66ca1..cb4a0d95d3da0a9d09d971e6d5b00481746c9c81 100644 (file)
@@ -104,7 +104,7 @@ GhostRegion::is_automation_ghost()
 AudioGhostRegion::AudioGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, double initial_unit_pos)
        : GhostRegion(tv.ghost_group(), tv, source_tv, initial_unit_pos)
 {
-       
+
 }
 
 void
@@ -186,13 +186,13 @@ MidiGhostRegion::MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, d
 
 MidiGhostRegion::~MidiGhostRegion()
 {
-       
+       clear_events ();
 }
 
 MidiGhostRegion::Event::Event(ArdourCanvas::CanvasNoteEvent* e)
        : event(e)
 {
-       
+
 }
 
 MidiGhostRegion::Note::Note(ArdourCanvas::CanvasNote* n, ArdourCanvas::Group* g)
@@ -203,7 +203,7 @@ MidiGhostRegion::Note::Note(ArdourCanvas::CanvasNote* n, ArdourCanvas::Group* g)
 
 MidiGhostRegion::Note::~Note()
 {
-       
+       delete rect;
 }
 
 void
@@ -339,7 +339,7 @@ MidiGhostRegion::find_event (ArdourCanvas::CanvasNote* parent)
        /* we are using _optimization_iterator to speed up the common case where a caller
           is going through our notes in order.
        */
-       
+
        if (_optimization_iterator != events.end()) {
                ++_optimization_iterator;
        }