Remove unused variables and such. No functional changes.

This commit is contained in:
Markus Armbruster 2004-03-11 22:10:19 +00:00
parent 245b5a21e2
commit 91cc2ddc42
6 changed files with 2 additions and 6 deletions

View file

@ -49,7 +49,6 @@ struct ichrstr {
/* variables using this structure */ /* variables using this structure */
extern struct ichrstr ichr[]; extern struct ichrstr ichr[];
extern int maxitem;
/* procedures using/returning this struct */ /* procedures using/returning this struct */

View file

@ -184,7 +184,7 @@ extern struct dchrstr bigcity_dchr;
/* Sector flags */ /* Sector flags */
#define MOVE_IN_PROGRESS bit(0) /* move in progress */ #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 #define ITEM_MAX 9999
/* maximum number of mines, must fit into struct sctstr member sct_mines */ /* maximum number of mines, must fit into struct sctstr member sct_mines */
#define MINES_MAX 65535 #define MINES_MAX 65535

View file

@ -200,7 +200,6 @@ grab_sect(register struct sctstr *sp, natid to)
struct plnstr *pp; struct plnstr *pp;
struct lndstr *lp; struct lndstr *lp;
struct nukstr *np; struct nukstr *np;
int oldche;
struct nstr_item ni; struct nstr_item ni;
struct plnstr p; struct plnstr p;
struct lndstr l; struct lndstr l;

View file

@ -74,7 +74,6 @@ spy(void)
int i; int i;
coord *table; /* sectors already seen */ coord *table; /* sectors already seen */
int t_len = 0; int t_len = 0;
int vec[I_MAX + 1];
int nrecon; int nrecon;
int nunits; int nunits;
struct nstr_sect nstr; struct nstr_sect nstr;

View file

@ -125,7 +125,6 @@ work(void)
static int static int
buildeff(struct sctstr *sp, int work, double *money) buildeff(struct sctstr *sp, int work, double *money)
{ {
int vec[I_MAX + 1];
register int work_cost; register int work_cost;
int n, hcms, lcms; int n, hcms, lcms;
int effdone = 0; int effdone = 0;

View file

@ -554,7 +554,7 @@ int
use_supply(struct lndstr *lp) use_supply(struct lndstr *lp)
{ {
struct lchrstr *lcp; 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; int fuel_needed, fuel, petrol_needed, petrol;
lcp = &lchr[(int)lp->lnd_type]; lcp = &lchr[(int)lp->lnd_type];