diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 13:37:59 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 13:37:59 -0400 |
commit | 4b515c178c30426ca0b96ea76122d2c8de4e6791 (patch) | |
tree | 312396edc0953057948777defd1b49325eb0f54a /gtk2_ardour | |
parent | 7ebf107e43889124b5774509f6d3e35e8116c3f8 (diff) |
remove unused code
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.h | 3 | ||||
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 81 |
2 files changed, 0 insertions, 84 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index b0cc0c117e..33d18cda72 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1216,11 +1216,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD void temporal_zoom_by_frame (framepos_t start, framepos_t end); void temporal_zoom_to_frame (bool coarser, framepos_t frame); - void insert_region_list_drag (boost::shared_ptr<ARDOUR::Region>, int x, int y); void insert_region_list_selection (float times); - void insert_route_list_drag (boost::shared_ptr<ARDOUR::Route>, int x, int y); - /* import & embed */ void add_external_audio_action (Editing::ImportMode); diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 96f7af7a1b..cb1a4a11e4 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2117,87 +2117,6 @@ Editor::unhide_ranges () } } -/* INSERT/REPLACE */ - -void -Editor::insert_region_list_drag (boost::shared_ptr<Region> region, int x, int y) -{ - double cx, cy; - framepos_t where; - RouteTimeAxisView *rtv = 0; - boost::shared_ptr<Playlist> playlist; - - GdkEvent event; - event.type = GDK_BUTTON_RELEASE; - event.button.x = x; - event.button.y = y; - - where = window_event_sample (&event, &cx, &cy); - - if (where < leftmost_frame || where > leftmost_frame + current_page_samples()) { - /* clearly outside canvas area */ - return; - } - - std::pair<TimeAxisView*, int> tv = trackview_by_y_position (cy); - if (tv.first == 0) { - return; - } - - if ((rtv = dynamic_cast<RouteTimeAxisView*> (tv.first)) == 0) { - return; - } - - if ((playlist = rtv->playlist()) == 0) { - return; - } - - snap_to (where); - - begin_reversible_command (_("insert dragged region")); - playlist->clear_changes (); - playlist->add_region (RegionFactory::create (region, true), where, 1.0); - _session->add_command(new StatefulDiffCommand (playlist)); - commit_reversible_command (); -} - -void -Editor::insert_route_list_drag (boost::shared_ptr<Route> route, int x, int y) -{ - double cx, cy; - RouteTimeAxisView *dest_rtv = 0; - RouteTimeAxisView *source_rtv = 0; - - GdkEvent event; - event.type = GDK_BUTTON_RELEASE; - event.button.x = x; - event.button.y = y; - - window_event_sample (&event, &cx, &cy); - - std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (cy); - if (tv.first == 0) { - return; - } - - if ((dest_rtv = dynamic_cast<RouteTimeAxisView*> (tv.first)) == 0) { - return; - } - - /* use this drag source to add underlay to a track. But we really don't care - about the Route, only the view of the route, so find it first */ - for(TrackViewList::iterator it = track_views.begin(); it != track_views.end(); ++it) { - if((source_rtv = dynamic_cast<RouteTimeAxisView*>(*it)) == 0) { - continue; - } - - if(source_rtv->route() == route && source_rtv != dest_rtv) { - dest_rtv->add_underlay(source_rtv->view()); - break; - } - } -} - void Editor::insert_region_list_selection (float times) { |