Remove unused kill_timer() and get_delete_timer() functions

These functions are completely unused.  Also remove the TimerList.delete member that is only used
by these functions.
This commit is contained in:
Kevin Easton
2017-09-20 15:31:41 +10:00
parent 5bd8a40cf8
commit 604fcf794b
3 changed files with 1 additions and 40 deletions

View File

@@ -247,14 +247,6 @@ extern void ExecuteTimers (void)
break;
}
}
if (current && current->delete)
{
if (!current->callback)
new_free(&current->command);
new_free(&current->subargs);
new_free(&current->whom);
new_free(&current);
}
}
parsingtimer = 0;
}
@@ -376,34 +368,6 @@ extern int BX_delete_timer (char *ref)
return -1;
}
int kill_timer(char *ref)
{
TimerList *tmp;
for (tmp = PendingTimers; tmp; tmp = tmp->next)
{
/* can only delete user created timers */
if (!my_stricmp(tmp->ref, ref))
{
tmp->delete = 1;
return 0;
}
}
return -1;
}
int get_delete_timer(char *ref)
{
TimerList *tmp;
for (tmp = PendingTimers; tmp; tmp = tmp->next)
{
/* can only delete user created timers */
if (!my_stricmp(tmp->ref, ref))
return tmp->delete;
}
return -1;
}
void BX_delete_all_timers (void)
{
while (PendingTimers)