]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused isc_timer_touch() function
authorOndřej Surý <ondrej@isc.org>
Fri, 11 Mar 2022 10:26:09 +0000 (11:26 +0100)
committerEvan Hunt <each@isc.org>
Mon, 14 Mar 2022 20:00:05 +0000 (13:00 -0700)
The isc_timer_touch() was unused, just remove it.

lib/isc/include/isc/timer.h
lib/isc/timer.c

index 78a0a583df8967933227d26b999a60138f0c9051..ac3133fa31cba44a69ccb537c4ca0a1c6f2bbbed 100644 (file)
@@ -196,27 +196,6 @@ isc_timer_reset(isc_timer_t *timer, isc_timertype_t type,
  *\li  Unexpected error
  */
 
-isc_result_t
-isc_timer_touch(isc_timer_t *timer);
-/*%<
- * Set the last-touched time of 'timer' to the current time.
- *
- * Requires:
- *
- *\li  'timer' is a valid once timer.
- *
- * Ensures:
- *
- *\li  An idle timeout will not be generated until at least Now + the
- *     timer's interval if 'timer' is a once timer with a non-zero
- *     interval.
- *
- * Returns:
- *
- *\li  Success
- *\li  Unexpected error
- */
-
 void
 isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp);
 /*%<
index fad06767ae8835db5c6c088799cf3b272fbe093c..02eeafe4e83705b04b4ae29efb991aeea8e237b8 100644 (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));