]> git.pond.sub.org Git - empserver/commitdiff
Remove unused variables and such. No functional changes.
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 11 Mar 2004 22:10:19 +0000 (22:10 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 11 Mar 2004 22:10:19 +0000 (22:10 +0000)
include/item.h
include/sect.h
src/lib/commands/cede.c
src/lib/commands/spy.c
src/lib/commands/work.c
src/lib/subs/supply.c

index 953d6cb62abb329ad0f5ada7f0aa656e3b2d538a..a5525b0ee50d3e51f57aa6e88ae432eb875ca786 100644 (file)
@@ -49,7 +49,6 @@ struct ichrstr {
 /* variables using this structure */
 
 extern struct ichrstr ichr[];
-extern int maxitem;
 
 /* procedures using/returning this struct */
 
index 6daa05ae48b7de9f9f81d0ae7cd354bbee340300..42cb74e96352a8df89a3b46922a1fc01b0da7cc4 100644 (file)
@@ -184,7 +184,7 @@ extern struct dchrstr bigcity_dchr;
 /* Sector flags */
 #define MOVE_IN_PROGRESS       bit(0)  /* move in progress */
 
-/* maximum amount of an item, must fit into sct_item[], sct_del[], sct_dist */
+/* maximum item amount, must fit into sct_item[], sct_del[], sct_dist[] */
 #define ITEM_MAX 9999
 /* maximum number of mines, must fit into struct sctstr member sct_mines */
 #define MINES_MAX 65535
index 8b1162dc773177cf71944bd9772099749a69db14..a7be84a4123f59728406b5e3ce844de9a4826a45 100644 (file)
@@ -200,7 +200,6 @@ grab_sect(register struct sctstr *sp, natid to)
     struct plnstr *pp;
     struct lndstr *lp;
     struct nukstr *np;
-    int oldche;
     struct nstr_item ni;
     struct plnstr p;
     struct lndstr l;
index db9e4fea046b4eca3bcf0da132243706b54c9d49..3001345b21cef6cb078dbe6c75f821d248e6ac7a 100644 (file)
@@ -74,7 +74,6 @@ spy(void)
     int i;
     coord *table;              /* sectors already seen */
     int t_len = 0;
-    int vec[I_MAX + 1];
     int nrecon;
     int nunits;
     struct nstr_sect nstr;
index 574e8c4f2e842c76d7b4291cbb999155884def30..68bab5fa804e2c23e18ee417fe6e08101c68716d 100644 (file)
@@ -125,7 +125,6 @@ work(void)
 static int
 buildeff(struct sctstr *sp, int work, double *money)
 {
-    int vec[I_MAX + 1];
     register int work_cost;
     int n, hcms, lcms;
     int effdone = 0;
index afb86686f4fd25f19537867f78c78c22a41543dc..df0ac37dfece8d976ac9ffa6335a1c0c6447914c 100644 (file)
@@ -554,7 +554,7 @@ int
 use_supply(struct lndstr *lp)
 {
     struct lchrstr *lcp;
-    int vec[I_MAX + 1], shells_needed, shells, food, food_needed;
+    int shells_needed, shells, food, food_needed;
     int fuel_needed, fuel, petrol_needed, petrol;
 
     lcp = &lchr[(int)lp->lnd_type];