diff options
author | David Robillard <d@drobilla.net> | 2012-11-21 22:44:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-11-21 22:44:41 +0000 |
commit | db9c67b9130d6d7eeb78a7d01289c5edaf2d5bfb (patch) | |
tree | 3681a519d40e4f1bed441e4f3d7214badd651b36 | |
parent | ad3752a9029796b95230b323af138c075c9be93f (diff) | |
download | ingen-db9c67b9130d6d7eeb78a7d01289c5edaf2d5bfb.tar.gz ingen-db9c67b9130d6d7eeb78a7d01289c5edaf2d5bfb.tar.bz2 ingen-db9c67b9130d6d7eeb78a7d01289c5edaf2d5bfb.zip |
Trim dead code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4845 a436a847-0d15-0410-975c-d299462d15a1
-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; } } |