]> git.pond.sub.org Git - empserver/commitdiff
Clean up dead store in skyw()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Jun 2010 08:09:30 +0000 (10:09 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Jul 2010 15:48:53 +0000 (17:48 +0200)
Dead since commit 38befcb4.  Spotted by the Clang Static Analyzer.

src/lib/commands/skyw.c

index 4a9bfc170c2c6a534f9a7dd0e96e76f3f5a7234f..a39d8aad33f3d6a78d549421a9eef3f50219693c 100644 (file)
@@ -123,7 +123,6 @@ showsat(struct sky **skypp, int x, int y)
     struct sky *skyp;
     struct sky *todelete = NULL;
     struct sky **prev;
-    struct plchrstr *pcp;
     int nsat = 0;
 
     prev = NULL;
@@ -139,7 +138,6 @@ showsat(struct sky **skypp, int x, int y)
            prev = &(*prev)->s_next;
            continue;
        }
-       pcp = &plchr[(int)skyp->s_sat.pln_type];
        pr(" %12.12s (#%3d) %s @ %s\n",
           cname(skyp->s_sat.pln_own), skyp->s_sat.pln_own,
           prplane(&skyp->s_sat), xyas(x, y, player->cnum));