diff options
-rw-r--r-- | ingen/Configuration.hpp | 16 | ||||
-rw-r--r-- | src/Configuration.cpp | 9 | ||||
-rw-r--r-- | src/ingen/main.cpp | 2 |
3 files changed, 1 insertions, 26 deletions
diff --git a/ingen/Configuration.hpp b/ingen/Configuration.hpp index cdec5e4b..ba06ba33 100644 --- a/ingen/Configuration.hpp +++ b/ingen/Configuration.hpp @@ -76,8 +76,6 @@ public: std::list<std::string> load_default(const std::string& app, const std::string& file); - void print(std::ostream& os, const std::string mime_type="text/plain") const; - const Raul::Atom& option(const std::string& long_name) const; bool set(const std::string& long_name, const Raul::Atom& value); @@ -124,19 +122,5 @@ private: } // namespace Ingen -static inline std::ostream& -operator<<(std::ostream& os, const Raul::Atom& value) -{ - #if 0 - switch (value.type()) { - case Ingen::Configuration::NOTHING: return os << "(nil)"; - case Ingen::Configuration::INT: return os << value.get_int(); - case Ingen::Configuration::BOOL: return os << (value.get_bool() ? "true" : "false"); - case Ingen::Configuration::STRING: return os << value.get_string(); - } - #endif - return os; -} - #endif // INGEN_CONFIGURATION_HPP diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 935b6796..e4f6ecd4 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -241,15 +241,6 @@ Configuration::load_default(const std::string& app, const std::string& file) return loaded; } -void -Configuration::print(std::ostream& os, const std::string mime_type) const -{ - for (Options::const_iterator o = _options.begin(); o != _options.end(); ++o) { - const Option& option = o->second; - os << o->first << " = " << option.value << std::endl; - } -} - const Raul::Atom& Configuration::option(const std::string& long_name) const { diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index f89a356a..d1b08f52 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -164,7 +164,7 @@ main(int argc, char** argv) symbol = Raul::Symbol(p.symbol()); } } else { - cerr << "Invalid path given: '" << path_option << endl; + cerr << "Invalid path given: '" << path_option.get_string() << endl; } } |