From edd1061c3d8822ab586e2bbc80894e125b521a52 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 6 Feb 2017 16:18:09 +0100 Subject: save/restore VCA master state inside slaves, so that a reloaded session ends up back in the same state --- libs/ardour/gain_control.cc | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'libs/ardour/gain_control.cc') diff --git a/libs/ardour/gain_control.cc b/libs/ardour/gain_control.cc index d100273640..21e1ba5f85 100644 --- a/libs/ardour/gain_control.cc +++ b/libs/ardour/gain_control.cc @@ -133,7 +133,6 @@ GainControl::recompute_masters_ratios (double val) Mr(n) is the new ratio number for the slaves */ - const double nmasters = _masters.size(); double masters_total_gain_coefficient = 1.0; @@ -148,37 +147,3 @@ GainControl::recompute_masters_ratios (double val) } } -XMLNode& -GainControl::get_state () -{ - XMLNode& node (AutomationControl::get_state()); - -#if 0 - /* store VCA master IDs */ - - string str; - - { - Glib::Threads::RWLock::ReaderLock lm (master_lock); - for (Masters::const_iterator mr = _masters.begin(); mr != _masters.end(); ++mr) { - if (!str.empty()) { - str += ','; - } - str += PBD::to_string (mr->first, std::dec); - } - } - - if (!str.empty()) { - node.add_property (X_("masters"), str); - } -#endif - - return node; -} - -int -GainControl::set_state (XMLNode const& node, int version) -{ - return AutomationControl::set_state (node, version); -} - -- cgit v1.2.3