summaryrefslogtreecommitdiff
path: root/libs/ardour/configuration.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/configuration.cc')
-rw-r--r--libs/ardour/configuration.cc26
1 files changed, 7 insertions, 19 deletions
diff --git a/libs/ardour/configuration.cc b/libs/ardour/configuration.cc
index 68f13f8245..d5ca426a74 100644
--- a/libs/ardour/configuration.cc
+++ b/libs/ardour/configuration.cc
@@ -17,7 +17,12 @@
*/
+#include <iostream>
+
+#include "pbd/compose.h"
+
#include "ardour/configuration.h"
+#include "ardour/debug.h"
using namespace ARDOUR;
using namespace std;
@@ -31,13 +36,11 @@ Configuration::~Configuration ()
{
}
-bool ConfigVariableBase::show_stores = false;
-
void
ConfigVariableBase::add_to_node (XMLNode& node)
{
- std::string const v = get_as_string ();
- show_stored_value (v);
+ const std::string v = get_as_string ();
+ DEBUG_TRACE (DEBUG::Configuration, string_compose ("Config variable %1 stored as [%2]\n", _name, v));
XMLNode* child = new XMLNode ("Option");
child->add_property ("name", _name);
child->add_property ("value", v);
@@ -101,21 +104,6 @@ ConfigVariableBase::set_from_node (XMLNode const & node)
return false;
}
-
-void
-ConfigVariableBase::set_show_stored_values (bool yn)
-{
- show_stores = yn;
-}
-
-void
-ConfigVariableBase::show_stored_value (const string& str)
-{
- if (show_stores) {
- cerr << "Config variable " << _name << " stored as " << str << endl;
- }
-}
-
void
ConfigVariableBase::notify ()
{