From f60029ae2487ff1b77a9e0a05fccea89c4c55c59 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 7 Apr 2025 13:45:42 +0300 Subject: [PATCH] struct MHD_Daemon: removed unused member --- src/mhd2/daemon_start.c | 1 - src/mhd2/events_process.c | 4 ---- src/mhd2/mhd_daemon.h | 6 ------ 3 files changed, 11 deletions(-) diff --git a/src/mhd2/daemon_start.c b/src/mhd2/daemon_start.c index e28f8e6d..5a0507f2 100644 --- a/src/mhd2/daemon_start.c +++ b/src/mhd2/daemon_start.c @@ -1797,7 +1797,6 @@ allocate_events (struct MHD_Daemon *restrict d) mhd_assert (0 != d->conns.cfg.count_limit); mhd_assert (mhd_D_TYPE_HAS_EVENTS_PROCESSING (d->threading.d_type)); - d->events.zero_wait = false; mhd_DLINKEDL_INIT_LIST (&(d->events),proc_ready); switch (d->events.poll_type) diff --git a/src/mhd2/events_process.c b/src/mhd2/events_process.c index dfe466c1..9e91b39f 100644 --- a/src/mhd2/events_process.c +++ b/src/mhd2/events_process.c @@ -105,8 +105,6 @@ mhd_daemon_get_wait_max (struct MHD_Daemon *restrict d) return 0; if (d->threading.resume_requested) /* Remove? It is triggered by ITC anyway */ return 0; - if (d->events.zero_wait) - return 0; if (NULL != mhd_DLINKEDL_GET_FIRST (&(d->events), proc_ready)) return 0; @@ -1432,8 +1430,6 @@ get_all_net_updates_by_epoll (struct MHD_Daemon *restrict d) static MHD_FN_PAR_NONNULL_ (1) bool process_all_events_and_data (struct MHD_Daemon *restrict d) { - d->events.zero_wait = false; /* Reset as all pending data will be processed */ - switch (d->events.poll_type) { case mhd_POLL_TYPE_EXT: diff --git a/src/mhd2/mhd_daemon.h b/src/mhd2/mhd_daemon.h index 243e784f..64d3b566 100644 --- a/src/mhd2/mhd_daemon.h +++ b/src/mhd2/mhd_daemon.h @@ -476,12 +476,6 @@ struct mhd_DaemonEventMonitoringData */ bool accept_pending; - /** - * Indicate that daemon already has some data to be processed on the next - * cycle - */ - bool zero_wait; // FIXME: Remove completely? - /** * The list of the daemon's connections that need processing */