X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fconfiguration.cc;h=d5ca426a74d3c8cf9d3493f0c4e6f3bcdc3481c3;hb=204baa31d842d4c2f833d319b6fa55e402a1bfb8;hp=68f13f82454cb51904f46d0743d2b9c041418b7c;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git 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 + +#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 () {