Remove some unused code.

git-svn-id: svn://localhost/ardour2/branches/3.0@12052 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-21 23:54:20 +00:00
parent f0a93dbf6a
commit ca96b9afe8
3 changed files with 0 additions and 24 deletions

View File

@ -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 ()
{

View File

@ -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<ARDOUR::AutomationList>* memento_command_binder ();
const Evoral::TimeConverter<double, ARDOUR::framepos_t>& 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<double> _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
*/

View File

@ -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<Line>::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<Line>::iterator i = _lines.begin(); i != _lines.end(); ++i) {
i->line->clear_always_in_view ();
i->line->reset ();
}
}