Removed almost unused function vconfig::get_attribute.

This commit is contained in:
Guillaume Melquiond 2009-04-12 16:01:18 +00:00
parent e2adc61b9a
commit 0b688ca871
2 changed files with 1 additions and 2 deletions

View File

@ -1174,7 +1174,7 @@ namespace {
const std::string name = cfg["name"];
t_string& var = state_of_game->get_variable(name);
const t_string& literal = cfg.get_attribute("literal"); // no $var substitution
const t_string &literal = cfg.get_config()["literal"]; // no $var substitution
if(literal.empty() == false) {
var = literal;
}

View File

@ -66,7 +66,6 @@ public:
*/
const t_string operator[](const std::string& key) const { return expand(key); }
const t_string expand(const std::string&) const; /** < Synonym for operator[] */
const t_string& get_attribute(const std::string& key) const { return (*cfg_)[key]; }
bool has_attribute(const std::string& key) const { return cfg_->has_attribute(key); }
bool empty() const { return (null() || cfg_->empty()); }