Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] (PR#5115) small fix
Home

[Freeciv-Dev] (PR#5115) small fix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#5115) small fix
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 16 Aug 2003 07:48:34 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Just a tiny cleanup, lifted from some old code. Self-explanatory, I think.

  - Per

Index: client/civclient.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/civclient.c,v
retrieving revision 1.174
diff -u -r1.174 civclient.c
--- client/civclient.c  2003/07/23 04:51:14     1.174
+++ client/civclient.c  2003/08/16 14:44:28
@@ -285,10 +285,6 @@
     handle_unit_info((struct packet_unit_info *)packet);
     break;
 
-   case PACKET_MOVE_UNIT:
-    handle_move_unit();
-    break;
-    
   case PACKET_TILE_INFO:
     handle_tile_info((struct packet_tile_info *)packet);
     break;
@@ -480,9 +476,6 @@
 
   default:
     freelog(LOG_ERROR, "Received unknown packet (type %d) from server!", type);
-    /* Old clients (<= some 1.11.5-devel, capstr +1.11) used to exit()
-     * here, so server should not rely on client surviving.
-     */
     break;
   }
 
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.326
diff -u -r1.326 packhand.c
--- client/packhand.c   2003/08/14 19:07:01     1.326
+++ client/packhand.c   2003/08/16 14:44:29
@@ -837,14 +837,6 @@
 /**************************************************************************
 ...
 **************************************************************************/
-void handle_move_unit()
-{
-  die("this packet should never get sent to a client");
-}
-
-/**************************************************************************
-...
-**************************************************************************/
 void handle_unit_info(struct packet_unit_info *packet)
 {
   struct city *pcity;
Index: client/packhand.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.h,v
retrieving revision 1.33
diff -u -r1.33 packhand.h
--- client/packhand.h   2003/06/27 02:09:29     1.33
+++ client/packhand.h   2003/08/16 14:44:29
@@ -35,7 +35,6 @@
 
 void handle_spaceship_info(struct packet_spaceship_info *p);
 
-void handle_move_unit(void);
 void handle_new_year(struct packet_new_year *ppacket);
 void handle_city_info(struct packet_city_info *packet);
 void handle_short_city(struct packet_short_city *packet);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#5115) small fix, Per I. Mathisen <=