From: Miroslav Lichvar Date: Mon, 7 Sep 2020 08:45:03 +0000 (+0200) Subject: cmdmon: remove unused test code X-Git-Tag: 4.0-pre4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cb9021c8774e865d0ea669583ec5b252bf1eaea;p=thirdparty%2Fchrony.git cmdmon: remove unused test code --- diff --git a/cmdmon.c b/cmdmon.c index 99a8489d..171f6fe5 100644 --- 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); } /* ================================================== */