From c64fcd2fc640bef180b46c5af653906384682c47 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 5 Jun 2014 15:22:26 -0400 Subject: [PATCH] remove needlessly-added method --- gtk2_ardour/editor_drag.cc | 3 +++ gtk2_ardour/time_axis_view_item.cc | 6 ------ gtk2_ardour/time_axis_view_item.h | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 9e31cda538..09f2d7ba94 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -713,6 +713,9 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move) Duple rv_canvas_offset = rvg->parent()->item_to_canvas (Duple (0,0)); Duple dmg_canvas_offset = _editor->_drag_motion_group->item_to_canvas (Duple (0,0)); rv->get_canvas_group()->reparent (_editor->_drag_motion_group); + /* move the item so that it continues to appear at the + same location now that its parent has changed. + */ rvg->move (rv_canvas_offset - dmg_canvas_offset); } diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index 5427d90caa..49b295ae65 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -1046,9 +1046,3 @@ TimeAxisViewItem::parameter_changed (string p) set_frame_gradient (); } } - -void -TimeAxisViewItem::visual_raise_to_top () -{ - group->raise_to_top (); -} diff --git a/gtk2_ardour/time_axis_view_item.h b/gtk2_ardour/time_axis_view_item.h index cd813e17c9..faa6ba5d06 100644 --- a/gtk2_ardour/time_axis_view_item.h +++ b/gtk2_ardour/time_axis_view_item.h @@ -76,7 +76,6 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList void set_name_text_color (); uint32_t get_fill_color () const; - void visual_raise_to_top (); ArdourCanvas::Item* get_canvas_frame(); ArdourCanvas::Group* get_canvas_group();