Author: anonymissimus
Date: Sat May 28 14:18:09 2011
New Revision: 49683

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49683&view=rev
Log:
removed unused function tod_manager::get_time_of_day_of_next_turn

@Crab: once you need this function just revert the commit;
however, the < in the comparison at the start should be > imo

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

Modified: trunk/src/tod_manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.cpp?rev=49683&r1=49682&r2=49683&view=diff
==============================================================================
--- trunk/src/tod_manager.cpp (original)
+++ trunk/src/tod_manager.cpp Sat May 28 14:18:09 2011
@@ -105,22 +105,6 @@
        return get_time_of_day_turn(times_, turn_ - 1, currentTime_);
 }
 
-
-const time_of_day& tod_manager::get_time_of_day_of_next_turn(const int side, 
const map_location &loc) const
-{
-       int nturn = turn_;
-       if (resources::controller->current_side() < side)
-       {
-               //that side went before current side, its next turn will be on 
next game turn
-               nturn++;
-       }
-       if (loc != map_location::null_location)
-       {
-               return get_time_of_day(loc, nturn);
-       }
-       return get_time_of_day_turn(times_, nturn, currentTime_);
-}
-
 const time_of_day& tod_manager::get_time_of_day(const map_location& loc, int 
n_turn) const
 {
        if(n_turn == 0)

Modified: trunk/src/tod_manager.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tod_manager.hpp?rev=49683&r1=49682&r2=49683&view=diff
==============================================================================
--- trunk/src/tod_manager.hpp (original)
+++ trunk/src/tod_manager.hpp Sat May 28 14:18:09 2011
@@ -35,12 +35,6 @@
                /** Returns time of day object for current turn. */
                const time_of_day& get_time_of_day() const;
                const time_of_day& get_previous_time_of_day() const;
-
-               /**
-                * Returns time of day object for the next turn of particular 
side
-                * loc - optional location
-                */
-               const time_of_day& get_time_of_day_of_next_turn(const int side, 
const map_location &loc = map_location::null_location) const;
 
                /**
                 * Returns time of day object in the turn at a location.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to