]> git.pond.sub.org Git - empserver/commitdiff
(orde,eta_calc): Remove unaccessed leftover variables nships,mcp.
authorMarc Olzheim <marcolz@stack.nl>
Tue, 14 Dec 2004 17:47:03 +0000 (17:47 +0000)
committerMarc Olzheim <marcolz@stack.nl>
Tue, 14 Dec 2004 17:47:03 +0000 (17:47 +0000)
No functional changes.

src/lib/commands/orde.c

index 4905182dffc861607d512a191ad107c9921e529d..f53553e57828e7ac3a862e1be6593469c4c239d2 100644 (file)
@@ -67,7 +67,6 @@
 int
 orde(void)
 {
-    int nships = 0;
     int diffeachship = 0;
     int orders, sub, level;
     int scuttling = 0;
@@ -320,7 +319,6 @@ orde(void)
            return RET_SYN;
 
        putship(ship.shp_uid, &ship);
-       nships++;
     }
     return RET_OK;
 }
@@ -328,7 +326,6 @@ orde(void)
 static void
 eta_calc(struct shpstr *sp, s_char *path, int *len, int *nupdates)
 {
-    struct mchrstr *mcp;
     double mobcost, mobil;
     int i;
 
@@ -336,7 +333,6 @@ eta_calc(struct shpstr *sp, s_char *path, int *len, int *nupdates)
     *len = i;
     *nupdates = 1;
 
-    mcp = &mchr[(int)sp->shp_type];
     mobcost = sp->shp_effic * 0.01 * sp->shp_speed;
     mobcost = 480.0 / (mobcost + techfact(sp->shp_tech, mobcost));
     mobil = sp->shp_mobil;