noop, simplify code.
(!mixer || !editor) are checked at the top of the funtion and also used without checks further down.
This commit is contained in:
parent
894192ca23
commit
8455ebce90
|
@ -596,13 +596,13 @@ ARDOUR_UI::save_ardour_state ()
|
|||
tearoff_node->add_child_nocopy (*t);
|
||||
}
|
||||
|
||||
if (mixer && mixer->monitor_section()) {
|
||||
if (mixer->monitor_section()) {
|
||||
XMLNode* t = new XMLNode (X_("monitor-section"));
|
||||
mixer->monitor_section()->tearoff().add_state (*t);
|
||||
tearoff_node->add_child_nocopy (*t);
|
||||
}
|
||||
|
||||
if (editor && editor->mouse_mode_tearoff()) {
|
||||
if (editor->mouse_mode_tearoff()) {
|
||||
XMLNode* t = new XMLNode (X_("mouse-mode"));
|
||||
editor->mouse_mode_tearoff ()->add_state (*t);
|
||||
tearoff_node->add_child_nocopy (*t);
|
||||
|
|
Loading…
Reference in New Issue
Block a user