From: nhmall Date: Sat, 23 Jan 2021 13:58:59 +0000 (-0500) Subject: unused variable in files.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3334f51a74b475c4193e864e4a169f881590faff;p=nethack unused variable in files.c --- diff --git a/src/files.c b/src/files.c index ca15fc1b9..a8c9b39be 100644 --- a/src/files.c +++ b/src/files.c @@ -683,7 +683,6 @@ set_bonesfile_name(file, lev) char *file; d_level *lev; { - int idx = 0; s_level *sptr; char *dptr; @@ -718,9 +717,6 @@ d_level *lev; Sprintf(eos(dptr), ".%c", sptr->boneid); else Sprintf(eos(dptr), ".%d", lev->dlevel); -#ifdef SYSCF - idx = sysopt.bonesformat[0]; -#endif #ifdef VMS Strcat(dptr, ";1"); #endif @@ -890,7 +886,7 @@ void set_savefile_name(regularize_it) boolean regularize_it; { - int idx = historical, regoffset = 0, overflow = 0, + int regoffset = 0, overflow = 0, indicator_spot = 0; /* 0=no indicator, 1=before ext, 2=after ext */ const char *postappend = (const char *) 0, *sfindicator = (const char *) 0; @@ -898,16 +894,6 @@ boolean regularize_it; char tmp[BUFSZ]; #endif - if (g.program_state.in_self_recover) { - /* self_recover needs to be done as historical - structlevel content until that process is - re-written to use something other than - copy_bytes() to retrieve data content from - level files (which are structlevel) and - place it into the save file. - */ - idx = historical; - } #ifdef VMS Sprintf(g.SAVEF, "[.save]%d%s", getuid(), g.plname); regoffset = 7;