(kw_read, kw_find, kwtab, kw_list): Were used to evaluate the hours

file until 4.2.7.  Since then kw_read() is unused, and kw_find()
always returns NULL.  Remove.  kw_find() callers changed.
This commit is contained in:
Markus Armbruster 2004-04-04 13:54:30 +00:00
parent 5dec30d66c
commit 05acaece48
4 changed files with 0 additions and 80 deletions

View file

@ -210,19 +210,8 @@ getminleft(time_t now, int *hour, int *mpd)
tm = localtime(&now);
curtime = tm->tm_min + tm->tm_hour * 60;
if (NULL != (bp = kw_find("minutes")))
kw_parse(CF_VALUE, bp, mpd);
natp = getnatp(player->cnum);
nminleft = *mpd - natp->nat_minused;
if (NULL != (bp = kw_find("hours"))) {
/*
* assume hours has already been set; just verify
* that it is present
*/
n = hour[1] - curtime;
if (n < nminleft)
nminleft = n;
}
n = 60 * 24 - (tm->tm_min + tm->tm_hour * 60);
if (n < nminleft)
nminleft = n;