Remove left-over valid file checking
Commit 7054e06e42 ("NetHack minor release checklist items - savefiles")
consolidated valid file checking into the function viable_nhfile(). This
commit removes unused variables left over from that change.
This commit is contained in:
@@ -840,7 +840,6 @@ d_level *lev;
|
|||||||
char **bonesid;
|
char **bonesid;
|
||||||
{
|
{
|
||||||
const char *fq_bones;
|
const char *fq_bones;
|
||||||
int failed = 0;
|
|
||||||
NHFILE *nhfp = (NHFILE *) 0;
|
NHFILE *nhfp = (NHFILE *) 0;
|
||||||
|
|
||||||
*bonesid = set_bonesfile_name(g.bones, lev);
|
*bonesid = set_bonesfile_name(g.bones, lev);
|
||||||
@@ -859,8 +858,6 @@ char **bonesid;
|
|||||||
#else
|
#else
|
||||||
nhfp->fd = open(fq_bones, O_RDONLY | O_BINARY, 0);
|
nhfp->fd = open(fq_bones, O_RDONLY | O_BINARY, 0);
|
||||||
#endif
|
#endif
|
||||||
if (nhfp->fd < 0)
|
|
||||||
failed = errno;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nhfp = viable_nhfile(nhfp);
|
nhfp = viable_nhfile(nhfp);
|
||||||
@@ -1043,7 +1040,6 @@ set_error_savefile()
|
|||||||
NHFILE *
|
NHFILE *
|
||||||
create_savefile()
|
create_savefile()
|
||||||
{
|
{
|
||||||
int failed = 0;
|
|
||||||
const char *fq_save;
|
const char *fq_save;
|
||||||
NHFILE *nhfp = (NHFILE *) 0;
|
NHFILE *nhfp = (NHFILE *) 0;
|
||||||
boolean do_historical = TRUE;
|
boolean do_historical = TRUE;
|
||||||
@@ -1076,8 +1072,6 @@ create_savefile()
|
|||||||
nhfp->fd = creat(fq_save, FCMASK);
|
nhfp->fd = creat(fq_save, FCMASK);
|
||||||
#endif
|
#endif
|
||||||
#endif /* MICRO || WIN32 */
|
#endif /* MICRO || WIN32 */
|
||||||
if (nhfp->fd < 0)
|
|
||||||
failed = errno;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(VMS) && !defined(SECURE)
|
#if defined(VMS) && !defined(SECURE)
|
||||||
@@ -1099,7 +1093,6 @@ create_savefile()
|
|||||||
NHFILE *
|
NHFILE *
|
||||||
open_savefile()
|
open_savefile()
|
||||||
{
|
{
|
||||||
int failed = 0;
|
|
||||||
const char *fq_save;
|
const char *fq_save;
|
||||||
NHFILE *nhfp = (NHFILE *) 0;
|
NHFILE *nhfp = (NHFILE *) 0;
|
||||||
boolean do_historical = TRUE;
|
boolean do_historical = TRUE;
|
||||||
@@ -1128,8 +1121,6 @@ open_savefile()
|
|||||||
#else
|
#else
|
||||||
nhfp->fd = open(fq_save, O_RDONLY | O_BINARY, 0);
|
nhfp->fd = open(fq_save, O_RDONLY | O_BINARY, 0);
|
||||||
#endif
|
#endif
|
||||||
if (nhfp->fd < 0)
|
|
||||||
failed = errno;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nhfp = viable_nhfile(nhfp);
|
nhfp = viable_nhfile(nhfp);
|
||||||
|
|||||||
Reference in New Issue
Block a user