mail[Wesnoth-commits] r40123 - in /trunk/src/editor: editor_map.cpp editor_map.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:42 2009
New Revision: 40123

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40123&view=rev
Log:
Removed unused function editor::editor_map::swap_starting_position.

Modified:
    trunk/src/editor/editor_map.cpp
    trunk/src/editor/editor_map.hpp

Modified: trunk/src/editor/editor_map.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor/editor_map.cpp?rev=40123&r1=40122&r2=40123&view=diff
==============================================================================
--- trunk/src/editor/editor_map.cpp (original)
+++ trunk/src/editor/editor_map.cpp Sun Dec  6 10:56:42 2009
@@ -273,18 +273,6 @@
                && w() == other.w();
 }
 
-void editor_map::swap_starting_position(int x1, int y1, int x2, int y2)
-{
-       int pos1 = is_starting_position(map_location(x1, y1));
-       int pos2 = is_starting_position(map_location(x2, y2));
-       if(pos1 != -1) {
-               set_starting_position(pos1 + 1, map_location(x2, y2));
-       }
-       if(pos2 != -1) {
-               set_starting_position(pos2 + 1, map_location(x1, y1));
-       }
-}
-
 t_translation::t_list editor_map::clone_column(int x, 
t_translation::t_terrain filler)
 {
        int h = tiles_[1].size();

Modified: trunk/src/editor/editor_map.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor/editor_map.hpp?rev=40123&r1=40122&r2=40123&view=diff
==============================================================================
--- trunk/src/editor/editor_map.hpp (original)
+++ trunk/src/editor/editor_map.hpp Sun Dec  6 10:56:42 2009
@@ -184,7 +184,6 @@
        bool same_size_as(const gamemap& other) const;
 
 protected:
-       void swap_starting_position(int x1, int y1, int x2, int y2);
        t_translation::t_list clone_column(int x, t_translation::t_terrain 
filler);
 
        //helper functions for resizing




Related Messages


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