2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 07:35:26 +00:00

Remove unused isc_timer_touch() function

The isc_timer_touch() was unused, just remove it.
This commit is contained in:
Ondřej Surý
2022-03-11 11:26:09 +01:00
committed by Evan Hunt
parent bbe1c06a8b
commit f4751a91f7
2 changed files with 0 additions and 51 deletions

View File

@@ -420,36 +420,6 @@ isc_timer_gettype(isc_timer_t *timer) {
return (t);
}
isc_result_t
isc_timer_touch(isc_timer_t *timer) {
isc_result_t result;
isc_time_t now;
/*
* Set the last-touched time of 'timer' to the current time.
*/
REQUIRE(VALID_TIMER(timer));
LOCK(&timer->lock);
/*
* We'd like to
*
* REQUIRE(timer->type == isc_timertype_once);
*
* but we cannot without locking the manager lock too, which we
* don't want to do.
*/
TIME_NOW(&now);
result = isc_time_add(&now, &timer->interval, &timer->idle);
UNLOCK(&timer->lock);
return (result);
}
void
isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) {
REQUIRE(VALID_TIMER(timer));