Author: jtn
Date: Mon Jul 11 21:14:51 2016
New Revision: 33224

URL: http://svn.gna.org/viewcvs/freeciv?rev=33224&view=rev
Log:
Remove unused create_overlay_unit() from Gtk3 clients.

See gna patch #7432.

Modified:
    trunk/client/gui-gtk-3.0/graphics.c
    trunk/client/gui-gtk-3.0/graphics.h
    trunk/client/gui-gtk-3.x/graphics.c
    trunk/client/gui-gtk-3.x/graphics.h

Modified: trunk/client/gui-gtk-3.0/graphics.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/graphics.c?rev=33224&r1=33223&r2=33224&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/graphics.c (original)
+++ trunk/client/gui-gtk-3.0/graphics.c Mon Jul 11 21:14:51 2016
@@ -92,27 +92,6 @@
 }
 
 /***************************************************************************
-  Put unit sprite to canvas
-***************************************************************************/
-void create_overlay_unit(struct canvas *pcanvas, struct unit_type *punittype,
-                         enum direction8 facing)
-{
-  int x1, x2, y1, y2;
-  int width, height;
-  struct sprite *sprite = get_unittype_sprite(tileset, punittype,
-                                              facing, TRUE);
-
-  sprite_get_bounding_box(sprite, &x1, &y1, &x2, &y2);
-  get_sprite_dimensions(sprite, &width, &height);
-
-  /* Finally, put a picture of the unit in the tile */
-  canvas_put_sprite(pcanvas, 0, 0, sprite, 
-      (x2 + x1 - width) / 2, (y1 + y2 - height) / 2, 
-      tileset_full_tile_width(tileset) - (x2 + x1 - width) / 2, 
-      tileset_full_tile_height(tileset) - (y1 + y2 - height) / 2);
-}
-
-/***************************************************************************
   This function is so that packhand.c can be gui-independent, and
   not have to deal with Sprites itself.
 ***************************************************************************/

Modified: trunk/client/gui-gtk-3.0/graphics.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/graphics.h?rev=33224&r1=33223&r2=33224&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/graphics.h (original)
+++ trunk/client/gui-gtk-3.0/graphics.h Mon Jul 11 21:14:51 2016
@@ -23,9 +23,6 @@
 #include "canvas.h"
 #include "sprite.h"
 
-void create_overlay_unit(struct canvas *pcanvas, struct unit_type *punittype,
-                         enum direction8 facing);
-
 extern struct sprite *intro_gfx_sprite;
 extern struct sprite *radar_gfx_sprite;
 

Modified: trunk/client/gui-gtk-3.x/graphics.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/graphics.c?rev=33224&r1=33223&r2=33224&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.x/graphics.c (original)
+++ trunk/client/gui-gtk-3.x/graphics.c Mon Jul 11 21:14:51 2016
@@ -92,27 +92,6 @@
 }
 
 /***************************************************************************
-  Put unit sprite to canvas
-***************************************************************************/
-void create_overlay_unit(struct canvas *pcanvas, struct unit_type *punittype,
-                         enum direction8 facing)
-{
-  int x1, x2, y1, y2;
-  int width, height;
-  struct sprite *sprite = get_unittype_sprite(tileset, punittype,
-                                              facing, TRUE);
-
-  sprite_get_bounding_box(sprite, &x1, &y1, &x2, &y2);
-  get_sprite_dimensions(sprite, &width, &height);
-
-  /* Finally, put a picture of the unit in the tile */
-  canvas_put_sprite(pcanvas, 0, 0, sprite, 
-      (x2 + x1 - width) / 2, (y1 + y2 - height) / 2, 
-      tileset_full_tile_width(tileset) - (x2 + x1 - width) / 2, 
-      tileset_full_tile_height(tileset) - (y1 + y2 - height) / 2);
-}
-
-/***************************************************************************
   This function is so that packhand.c can be gui-independent, and
   not have to deal with Sprites itself.
 ***************************************************************************/

Modified: trunk/client/gui-gtk-3.x/graphics.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.x/graphics.h?rev=33224&r1=33223&r2=33224&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.x/graphics.h (original)
+++ trunk/client/gui-gtk-3.x/graphics.h Mon Jul 11 21:14:51 2016
@@ -23,9 +23,6 @@
 #include "canvas.h"
 #include "sprite.h"
 
-void create_overlay_unit(struct canvas *pcanvas, struct unit_type *punittype,
-                         enum direction8 facing);
-
 extern struct sprite *intro_gfx_sprite;
 extern struct sprite *radar_gfx_sprite;
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to