mail[Wesnoth-commits] r40112 - in /trunk/src: terrain_translation.cpp terrain_translation.hpp


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

Header


Content

Posted by guillaume . melquiond on December 06, 2009 - 10:56:
Author: silene
Date: Sun Dec  6 10:56:07 2009
New Revision: 40112

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40112&view=rev
Log:
Removed unused constructor t_translation::t_terrain.

Modified:
    trunk/src/terrain_translation.cpp
    trunk/src/terrain_translation.hpp

Modified: trunk/src/terrain_translation.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain_translation.cpp?rev=40112&r1=40111&r2=40112&view=diff
==============================================================================
--- trunk/src/terrain_translation.cpp (original)
+++ trunk/src/terrain_translation.cpp Sun Dec  6 10:56:07 2009
@@ -148,11 +148,7 @@
 
 
/***************************************************************************************/
 
-t_terrain::t_terrain(const std::string& b) :
-       base(string_to_layer_(b)), overlay(NO_LAYER)
-{}
-
-t_terrain::t_terrain(const std::string& b, const t_layer o) :
+t_terrain::t_terrain(const std::string& b, t_layer o) :
        base(string_to_layer_(b)), overlay(o)
 {}
 

Modified: trunk/src/terrain_translation.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain_translation.hpp?rev=40112&r1=40111&r2=40112&view=diff
==============================================================================
--- trunk/src/terrain_translation.hpp (original)
+++ trunk/src/terrain_translation.hpp Sun Dec  6 10:56:07 2009
@@ -42,10 +42,9 @@
         * is empty (needed for matching) the layer has the value 0.
         */
        struct t_terrain {
-               t_terrain(const std::string& b);
                t_terrain(const std::string& b, const std::string& o);
-               t_terrain(const std::string& b, const t_layer o);
-               t_terrain(const t_layer& b, const t_layer& o) : base(b), 
overlay(o) {};
+               t_terrain(const std::string& b, t_layer o = NO_LAYER);
+               t_terrain(t_layer b, t_layer o) : base(b), overlay(o) {};
                t_terrain() : base(0), overlay(NO_LAYER) {}
 
                t_layer base;




Related Messages


Powered by MHonArc, Updated Sun Dec 06 11:00:10 2009