From 6b5582deef2d7b4b60a4d08399a0d32338111e34 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 28 Sep 2024 21:07:45 +0200 Subject: [PATCH] Small code cleanup and simplification --- gtk2_ardour/route_time_axis.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 0cc2043d78..062495d9ac 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1310,7 +1310,6 @@ RouteTimeAxisView::find_next_region_boundary (timepos_t const & pos, int32_t dir void RouteTimeAxisView::fade_range (TimeSelection& selection) { - std::shared_ptr what_we_got; std::shared_ptr tr = track (); std::shared_ptr playlist; @@ -1328,11 +1327,7 @@ RouteTimeAxisView::fade_range (TimeSelection& selection) playlist->fade_range (time); - vector cmds; - playlist->rdiff (cmds); - _session->add_commands (cmds); - _session->add_command (new StatefulDiffCommand (playlist)); - + playlist->rdiff_and_add_command (_session); } void