summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-05 13:35:43 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-05 13:35:43 +0000
commite7a2b99f3d4f7afe73a30ac85e770e228785c1be (patch)
tree3b959b78a8d34717e0190f4813225372a4bb3c22 /gtk2_ardour/route_time_axis.cc
parent355c079f1050fbf38327e92ac890d44f2d402031 (diff)
Clean up handling of track vs region automation a bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@7544 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index d1df63d187..9e50b67fac 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1299,17 +1299,16 @@ RouteTimeAxisView::find_next_region_boundary (nframes64_t pos, int32_t dir)
return -1;
}
-bool
+void
RouteTimeAxisView::cut_copy_clear (Selection& selection, CutCopyOp op)
{
boost::shared_ptr<Playlist> what_we_got;
boost::shared_ptr<Track> tr = track ();
boost::shared_ptr<Playlist> playlist;
- bool ret = false;
if (tr == 0) {
/* route is a bus, not a track */
- return false;
+ return;
}
playlist = tr->playlist();
@@ -1339,7 +1338,6 @@ RouteTimeAxisView::cut_copy_clear (Selection& selection, CutCopyOp op)
_session->add_command (*c);
}
_session->add_command (new StatefulDiffCommand (playlist));
- ret = true;
}
break;
case Copy:
@@ -1359,12 +1357,9 @@ RouteTimeAxisView::cut_copy_clear (Selection& selection, CutCopyOp op)
}
_session->add_command (new StatefulDiffCommand (playlist));
what_we_got->release ();
- ret = true;
}
break;
}
-
- return ret;
}
bool