diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-26 15:04:22 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-26 15:10:24 -0400 |
commit | 7d2f8b56864835f5ec1e4c48e28c3348efda16f3 (patch) | |
tree | 7ec5a899d1fb09a3056563f67462dc8c89bf5536 | |
parent | e06de8b8555ce4ac818ab8169cfc9a9d900bdbe2 (diff) |
remove unused i2w code from ControlPoint
-rw-r--r-- | gtk2_ardour/control_point.cc | 6 | ||||
-rw-r--r-- | gtk2_ardour/control_point.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/control_point.cc b/gtk2_ardour/control_point.cc index 9b588d1bab..90761d77c8 100644 --- a/gtk2_ardour/control_point.cc +++ b/gtk2_ardour/control_point.cc @@ -167,8 +167,8 @@ ControlPoint::move_to (double x, double y, ShapeType shape) _shape = shape; } -void -ControlPoint::i2w (double& x, double& y) const +ArdourCanvas::Item& +ControlPoint::item() const { - _item->item_to_canvas (x, y); + return *_item; } diff --git a/gtk2_ardour/control_point.h b/gtk2_ardour/control_point.h index ce4c30be96..045f1241ed 100644 --- a/gtk2_ardour/control_point.h +++ b/gtk2_ardour/control_point.h @@ -38,6 +38,7 @@ class Selection; namespace ArdourCanvas { class Rectangle; class Diamond; + class Item; } class ControlPoint : public Selectable @@ -74,7 +75,7 @@ class ControlPoint : public Selectable uint32_t view_index() const { return _view_index; } void set_view_index(uint32_t i) { _view_index = i; } - void i2w (double &, double &) const; + ArdourCanvas::Item& item() const; ARDOUR::AutomationList::iterator model() const { return _model; } AutomationLine& line() const { return _line; } |