Author: alink
Date: Sun Nov  4 16:22:33 2007
New Revision: 21484

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21484&view=rev
Log:
remove the now unused unit_display::unit_selected (we use unit::set_selecting)

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

Modified: trunk/src/unit_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_display.cpp?rev=21484&r1=21483&r2=21484&view=diff
==============================================================================
--- trunk/src/unit_display.cpp (original)
+++ trunk/src/unit_display.cpp Sun Nov  4 16:22:33 2007
@@ -414,24 +414,4 @@
        events::pump();
 }
 
-
-void unit_selected(gamemap::location& loc)
-{
-       game_display* disp = game_display::get_singleton();
-       if(!disp || disp->video().update_locked() ||disp->fogged(loc)) return;
-       unit_map::iterator u = disp->get_units().find(loc);
-       if(u == disp->get_units().end()) return;
-
-       
u->second.start_animation(*disp,loc,u->second.choose_animation(*disp,loc,"selected"),true);
-       while(!u->second.get_animation()->animation_finished()) {
-
-               disp->invalidate(loc);
-               disp->draw();
-               events::pump();
-               disp->delay(10);
-       }
-       u->second.set_standing(*disp,loc);
-       if (loc==disp->mouseover_hex()) disp->invalidate_unit();
-}
-
 } // end unit_display namespace

Modified: trunk/src/unit_display.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_display.hpp?rev=21484&r1=21483&r2=21484&view=diff
==============================================================================
--- trunk/src/unit_display.hpp (original)
+++ trunk/src/unit_display.hpp Sun Nov  4 16:22:33 2007
@@ -48,7 +48,6 @@
                  const attack_type& attack, const attack_type* 
secondary_attack,
                 int swing,std::string hit_text);
 void unit_recruited(gamemap::location& loc);
-void unit_selected(gamemap::location& loc);
 
 
 //! Set healer_loc to an invalid location if there are no healers.


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

Reply via email to