mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:58:05 +00:00
Removed almost unused function vconfig::get_attribute.
This commit is contained in:
parent
e2adc61b9a
commit
0b688ca871
@ -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;
|
||||
}
|
||||
|
@ -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()); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user