Author: silene
Date: Sun Apr 12 18:01:18 2009
New Revision: 34792
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34792&view=rev
Log:
Removed almost unused function vconfig::get_attribute.
Modified:
trunk/src/game_events.cpp
trunk/src/variable.hpp
Modified: trunk/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=34792&r1=34791&r2=34792&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Sun Apr 12 18:01:18 2009
@@ -1174,7 +1174,7 @@
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;
}
Modified: trunk/src/variable.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/variable.hpp?rev=34792&r1=34791&r2=34792&view=diff
==============================================================================
--- trunk/src/variable.hpp (original)
+++ trunk/src/variable.hpp Sun Apr 12 18:01:18 2009
@@ -66,7 +66,6 @@
*/
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()); }
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits