summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-21 23:54:20 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-21 23:54:20 +0000
commitca96b9afe85018fac3e5097f7b211a544d7689a9 (patch)
tree96c018c36cf1f69eee619c82925511157869da83
parentf0a93dbf6a8fce3d89bb228d3096e0275c0b4cf6 (diff)
Remove some unused code.
git-svn-id: svn://localhost/ardour2/branches/3.0@12052 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/automation_line.cc14
-rw-r--r--gtk2_ardour/automation_line.h4
-rw-r--r--gtk2_ardour/editor_drag.cc6
3 files changed, 0 insertions, 24 deletions
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
@@ -1108,20 +1108,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 ()
{
_list_connections.drop_connections ();
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<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
*/
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<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 ();
}
}