Move, rename, and comment out unused function

This commit is contained in:
Pasi Kallinen
2020-03-16 11:46:08 +02:00
parent 9862d2c934
commit 712f545119
3 changed files with 20 additions and 19 deletions

View File

@@ -22,7 +22,6 @@ static char *FDECL(apron_text, (struct obj *, char *buf));
static void FDECL(stripspe, (struct obj *));
static void FDECL(p_glow1, (struct obj *));
static void FDECL(p_glow2, (struct obj *, const char *));
static void FDECL(randomize, (int *, int));
static void FDECL(forget, (int));
static int FDECL(maybe_tame, (struct monst *, struct obj *));
static boolean FDECL(get_valid_stinking_cloud_pos, (int, int));
@@ -707,23 +706,6 @@ int curse_bless;
}
}
/* randomize the given list of numbers 0 <= i < count */
static void
randomize(indices, count)
int *indices;
int count;
{
int i, iswap, temp;
for (i = count - 1; i > 0; i--) {
if ((iswap = rn2(i + 1)) == i)
continue;
temp = indices[i];
indices[i] = indices[iswap];
indices[iswap] = temp;
}
}
/*
* Forget some things (e.g. after reading a scroll of amnesia). When called,
* the following are always forgotten: