wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src help.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src help.cpp
Date: Sat, 30 Oct 2004 15:14:47 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/10/30 19:09:23

Modified files:
        src            : help.cpp 

Log message:
        Remove obsolete code.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/help.cpp.diff?tr1=1.41&tr2=1.42&r1=text&r2=text

Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.41 wesnoth/src/help.cpp:1.42
--- wesnoth/src/help.cpp:1.41   Sat Oct 30 17:20:01 2004
+++ wesnoth/src/help.cpp        Sat Oct 30 19:09:23 2004
@@ -509,9 +509,6 @@
                                if (checked_abilities.find(*it) == 
checked_abilities.end()) {
                                        const std::string id = "ability_" + *it;
                                        std::string lang_ability = 
cap(string_table[id]);
-                                       if (lang_ability == "") {
-                                               lang_ability = cap(*it);
-                                       }
                                        std::string description = 
string_table[*it + "_description"];
                                        const size_t colon_pos = 
description.find(':');
                                        if (colon_pos != std::string::npos) {
@@ -593,9 +590,6 @@
                                         ability_it != type.abilities().end(); 
ability_it++) {
                                        const std::string ref_id = 
std::string("ability_") + *ability_it;
                                        std::string lang_ability = 
string_table[ref_id];
-                                       if (lang_ability == "") {
-                                               lang_ability = *ability_it;
-                                       }
                                        ss << "<ref>dst='" << escape(ref_id) << 
"' text='" << escape(lang_ability)
                                           << "'</ref>";
                                        if (ability_it + 1 != 
type.abilities().end()) {
@@ -799,7 +793,7 @@
        }
        return topics;
 }
-       
+
 UNIT_DESCRIPTION_TYPE description_type(const unit_type &type) {
        const std::string id = type.name();
        const std::set<std::string> &encountered_units = 
preferences::encountered_units();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]