Przeglądaj źródła

struct MHD_Daemon: removed unused member

Evgeny Grin (Karlson2k) 10 miesięcy temu
rodzic
commit
f60029ae24
3 zmienionych plików z 0 dodań i 11 usunięć
  1. 0 1
      src/mhd2/daemon_start.c
  2. 0 4
      src/mhd2/events_process.c
  3. 0 6
      src/mhd2/mhd_daemon.h

+ 0 - 1
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)

+ 0 - 4
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:

+ 0 - 6
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
    */