diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 5a7f6ddd21..2f91c113bd 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -1107,20 +1107,6 @@ AutomationLine::add_visible_control_point (uint32_t view_index, uint32_t pi, dou } } -void -AutomationLine::add_always_in_view (double x) -{ - _always_in_view.push_back (x); - alist->apply_to_points (*this, &AutomationLine::reset_callback); -} - -void -AutomationLine::clear_always_in_view () -{ - _always_in_view.clear (); - alist->apply_to_points (*this, &AutomationLine::reset_callback); -} - void AutomationLine::connect_to_list () { diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 3ca2ec171b..841d7e6f55 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -129,9 +129,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible void modify_point_y (ControlPoint&, double); - void add_always_in_view (double); - void clear_always_in_view (); - virtual MementoCommandBinder* memento_command_binder (); const Evoral::TimeConverter& time_converter () const { @@ -192,7 +189,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible double _drag_x; ///< last x position of the drag, in units double _drag_distance; ///< total x movement of the drag, in units double _last_drag_fraction; ///< last y position of the drag, as a fraction - std::list _always_in_view; /** offset from the start of the automation list to the start of the line, so that * a +ve offset means that the 0 on the line is at _offset in the list */ diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e377509351..b0813e7cba 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -4186,9 +4186,7 @@ AutomationRangeDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor) double const q = j->line->time_converter().from (a - j->line->time_converter().origin_b ()); the_list->add (p, the_list->eval (p)); - j->line->add_always_in_view (p); the_list->add (q, the_list->eval (q)); - j->line->add_always_in_view (q); } /* same thing for the end */ @@ -4214,9 +4212,7 @@ AutomationRangeDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor) double const q = j->line->time_converter().from (i->end - j->line->time_converter().origin_b ()); the_list->add (p, the_list->eval (p)); - j->line->add_always_in_view (p); the_list->add (q, the_list->eval (q)); - j->line->add_always_in_view (q); } } @@ -4284,7 +4280,6 @@ AutomationRangeDrag::finished (GdkEvent* event, bool) motion (event, false); for (list::iterator i = _lines.begin(); i != _lines.end(); ++i) { i->line->end_drag (); - i->line->clear_always_in_view (); } _editor->session()->commit_reversible_command (); @@ -4294,7 +4289,6 @@ void AutomationRangeDrag::aborted (bool) { for (list::iterator i = _lines.begin(); i != _lines.end(); ++i) { - i->line->clear_always_in_view (); i->line->reset (); } }