From 0254e7e6b03d1beac62c5de2d43f887234e5fc32 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 10 Nov 2024 13:45:13 -0700 Subject: [PATCH] removed unused optimization iterator from GhostRegions --- gtk2_ardour/ghostregion.cc | 5 ----- gtk2_ardour/ghostregion.h | 1 - 2 files changed, 6 deletions(-) diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 3a4f7cb462..ffc7c80e8b 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -192,7 +192,6 @@ MidiGhostRegion::MidiGhostRegion(MidiRegionView& rv, : GhostRegion(rv, tv.ghost_group(), tv, source_tv, initial_unit_pos) , _note_group (new ArdourCanvas::Container (group)) , parent_mrv (rv) - , _optimization_iterator(events.end()) { _outline = UIConfiguration::instance().color ("ghost track midi outline"); @@ -298,7 +297,6 @@ MidiGhostRegion::add_note (NoteBase* n) { GhostEvent* event = new GhostEvent (n, _note_group); events.insert (make_pair (n->note(), event)); - _optimization_iterator = events.end(); event->item->set_fill_color (UIConfiguration::instance().color_mod(n->base_color(), "ghost track midi fill")); event->item->set_outline_color (_outline); @@ -332,7 +330,6 @@ MidiGhostRegion::clear_events() { _note_group->clear (true); events.clear (); - _optimization_iterator = events.end(); } /** Update the positions of our representation of a note. @@ -393,8 +390,6 @@ MidiGhostRegion::remove_note (NoteBase* note) delete f->second; events.erase (f); - - _optimization_iterator = events.end (); } void diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h index 417e9c1970..808b39727f 100644 --- a/gtk2_ardour/ghostregion.h +++ b/gtk2_ardour/ghostregion.h @@ -133,6 +133,5 @@ public: GhostEvent* find_event (std::shared_ptr); GhostEvent::EventList events; - GhostEvent::EventList::iterator _optimization_iterator; };