From bd723bdc38e77178c07994ea141c30f9a3ff1fa0 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Mon, 9 Jun 2014 17:33:26 +0100
Subject: [PATCH] Removed dead code in websocket2.c

---
 examples/websocket2.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/examples/websocket2.c b/examples/websocket2.c
index d0be9bbec..dbe880069 100644
--- a/examples/websocket2.c
+++ b/examples/websocket2.c
@@ -17,18 +17,6 @@ static void signal_handler(int sig_num) {
   s_signal_received = sig_num;
 }
 
-#if 0
-static int iterate_callback(struct mg_connection *c, enum mg_event ev) {
-  if (ev == MG_POLL && c->is_websocket) {
-    char buf[20];
-    int len = snprintf(buf, sizeof(buf), "%lu",
-     (unsigned long) * (time_t *) c->callback_param);
-    mg_websocket_write(c, 1, buf, len);
-  }
-  return MG_TRUE;
-}
-#endif
-
 static void handle_websocket_message(struct mg_connection *conn) {
   struct conn_data *d = (struct conn_data *) conn->connection_param;
   struct mg_connection *c;
-- 
GitLab