mail[Wesnoth-commits] r24565 - /trunk/src/unit_types.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on March 12, 2008 - 15:02:
Author: esr
Date: Wed Mar 12 15:02:22 2008
New Revision: 24565

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24565&view=rev
Log:
Drop another use of the obsolete and unused name= attribute.

Modified:
    trunk/src/unit_types.cpp

Modified: trunk/src/unit_types.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.cpp?rev=24565&r1=24564&r2=24565&view=diff
==============================================================================
--- trunk/src/unit_types.cpp (original)
+++ trunk/src/unit_types.cpp Wed Mar 12 15:02:22 2008
@@ -899,11 +899,6 @@
                {
                        // LOAD UNIT TYPES
                        std::string id = (**i.first)["id"];
-                       if(id.empty()) {
-                               // FIXME: OBSOLETE This code is only for 
compatibility with old unit defs and savefiles.
-                               // Still needed ?
-                               id = (**i.first)["name"];
-                       }
                        // we insert an empty unit_type and build it after 
the copy (for perfomance)
                        std::pair<unit_type_map::iterator,bool> insertion =
                                
unit_types.insert(std::pair<std::string,unit_type>(id,unit_type()));




Related Messages


Powered by MHonArc, Updated Wed Mar 12 16:01:54 2008