]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
cmdmon: remove unused test code
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 7 Sep 2020 08:45:03 +0000 (10:45 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Sep 2020 12:14:54 +0000 (14:14 +0200)
cmdmon.c

index 99a8489d951b39133b36397ebcd8ec3f5070e4bb..171f6fe510f364bb84707c46482eab8dfa423361 100644 (file)
--- a/cmdmon.c
+++ b/cmdmon.c
@@ -1739,19 +1739,7 @@ read_from_cmd_socket(int sock_fd, int event, void *anything)
   }
 
   /* Transmit the response */
-  {
-    /* Include a simple way to lose one message in three to test resend */
-
-    static int do_it=1;
-
-    if (do_it) {
-      transmit_reply(sock_fd, read_length, sck_message);
-    }
-
-#if 0
-    do_it = ((do_it + 1) % 3);
-#endif
-  }
+  transmit_reply(sock_fd, read_length, sck_message);
 }
 
 /* ================================================== */