]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
systemd: remove no longer needed systemd_tasks_status_notify()
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 16 Jul 2025 14:45:55 +0000 (16:45 +0200)
committerDavid Vašek <david.vasek@nic.cz>
Thu, 17 Jul 2025 16:37:53 +0000 (18:37 +0200)
src/knot/common/systemd.c
src/knot/common/systemd.h

index 8f19f73200878d65f25371676490d041923c0104..7bf1ef6f61591c9d722be01754def78b7126e3f0 100644 (file)
@@ -42,17 +42,6 @@ void systemd_zone_load_timeout_notify(void)
 #endif
 }
 
-void systemd_tasks_status_notify(int tasks)
-{
-#ifdef ENABLE_SYSTEMD
-       if (tasks > 0) {
-               sd_notifyf(0, "STATUS=Waiting for %d tasks to finish...", tasks);
-       } else {
-               sd_notify(0, "STATUS=");
-       }
-#endif
-}
-
 void systemd_ready_notify(void)
 {
 #ifdef ENABLE_SYSTEMD
index b2420bd396a5177232155ef751b1f698c39358e3..92812f4204b3e380f1a36b6727c45c60ffc98e5b 100644 (file)
  */
 void systemd_zone_load_timeout_notify(void);
 
-/*!
- * \brief Update systemd service status with information about number
- *        of scheduled tasks.
- *
- * \param tasks  Number of tasks to be done.
- */
-void systemd_tasks_status_notify(int tasks);
-
 /*!
  * \brief Notify systemd about service is ready.
  */