diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-28 17:44:04 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-28 17:44:04 -0400 |
commit | 621fd845e6351f01dd328e38d90916abaf437dc1 (patch) | |
tree | 52018ed8c076a16b87c388858d05dae734073bfa /gtk2_ardour/editor_ops.cc | |
parent | 34f088576cff12d7bfe1b21a0cebd3e194371a64 (diff) |
Revert "add new action and loop marker menu item for setting up loop record"
This reverts commit ebb43508f1ab75b7d7467e0e95cdd1c816cf3183.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index c7a46d0ad3..cc67e02ee8 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -6266,60 +6266,6 @@ Editor::set_punch_from_selection () } void -Editor::set_punch_from_loop () -{ - if (_session == 0) { - return; - } - - Location* tll; - - if ((tll = transport_loop_location()) == 0) { - return; - } - - set_punch_range (tll->start(), tll->end(), _("set punch range from loop")); -} - -void -Editor::setup_loop_record () -{ - if (_session == 0) { - return; - } - - Location * looploc = _session->locations()->auto_loop_location(); - - if (!looploc) { - return; - } - - set_punch_range (looploc->start(), looploc->end(), _("setup loop recording")); - - Glib::RefPtr<Action> action = ActionManager::get_action ("Transport", "TogglePunch"); - - if (action) { - - Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(action); - - if (!tact) { - return; - } - - /* drive the other two actions from this one */ - - Glib::RefPtr<Action> in_action = ActionManager::get_action ("Transport", "TogglePunchIn"); - Glib::RefPtr<Action> out_action = ActionManager::get_action ("Transport", "TogglePunchOut"); - - if (in_action && out_action) { - Glib::RefPtr<ToggleAction> tiact = Glib::RefPtr<ToggleAction>::cast_dynamic(in_action); - Glib::RefPtr<ToggleAction> toact = Glib::RefPtr<ToggleAction>::cast_dynamic(out_action); - tiact->set_active (true); - toact->set_active (true); - } - } -} -void Editor::set_session_extents_from_selection () { if (_session == 0) { |