mail[Wesnoth-commits] r44072 - in /trunk/src/whiteboard: action.hpp move.cpp move.hpp


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

Header


Content

Posted by gabrielmorin on July 10, 2010 - 08:06:
Author: gabba
Date: Sat Jul 10 08:06:56 2010
New Revision: 44072

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44072&view=rev
Log:
Whiteboard: removed method with duplicate functionality.

Modified:
    trunk/src/whiteboard/action.hpp
    trunk/src/whiteboard/move.cpp
    trunk/src/whiteboard/move.hpp

Modified: trunk/src/whiteboard/action.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/action.hpp?rev=44072&r1=44071&r2=44072&view=diff
==============================================================================
--- trunk/src/whiteboard/action.hpp (original)
+++ trunk/src/whiteboard/action.hpp Sat Jul 10 08:06:56 2010
@@ -51,11 +51,6 @@
        virtual void draw_hex(const map_location& hex) = 0;
 
        /**
-        * Indicates whether this actions targets the specified unit.
-        */
-       virtual bool is_related_to(const unit& unit) const = 0;
-
-       /**
         * Answers whether the specified hex is the main target of action for 
this action.
         */
        virtual bool is_numbering_hex(const map_location& hex) const = 0;

Modified: trunk/src/whiteboard/move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.cpp?rev=44072&r1=44071&r2=44072&view=diff
==============================================================================
--- trunk/src/whiteboard/move.cpp (original)
+++ trunk/src/whiteboard/move.cpp Sat Jul 10 08:06:56 2010
@@ -192,12 +192,6 @@
        return hex == dest_hex_;
 }
 
-bool move::is_related_to(const unit& unit) const
-{
-       bool is_related = &unit_ == &unit;
-       return is_related;
-}
-
 void move::set_valid(bool valid)
 {
        valid_ = valid;

Modified: trunk/src/whiteboard/move.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.hpp?rev=44072&r1=44071&r2=44072&view=diff
==============================================================================
--- trunk/src/whiteboard/move.hpp (original)
+++ trunk/src/whiteboard/move.hpp Sat Jul 10 08:06:56 2010
@@ -65,7 +65,6 @@
        virtual void draw_hex(const map_location& hex);
 
        virtual bool is_numbering_hex(const map_location& hex) const;
-       virtual bool is_related_to(const unit& unit) const;
 
        virtual void set_valid(bool valid);
        virtual bool is_valid() { return valid_; }




Related Messages


Powered by MHonArc, Updated Sat Jul 10 08:20:08 2010