From 65d40a2d08b39fa9fe9c69ff63caf11378a0078a Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Tue, 4 Aug 2015 19:14:17 -0700 Subject: [PATCH] remove dead code --- rpc/test/ws_helpers.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/rpc/test/ws_helpers.go b/rpc/test/ws_helpers.go index c636215c2..106176934 100644 --- a/rpc/test/ws_helpers.go +++ b/rpc/test/ws_helpers.go @@ -65,23 +65,6 @@ func waitForEvent(t *testing.T, con *websocket.Conn, eventid string, dieOnTimeou quitCh := make(chan struct{}) defer close(quitCh) - /* - // TODO delete: we moved pinging to the server. - // Write pings repeatedly - go func() { - pingTicker := time.NewTicker((time.Second * rpcserver.WSReadTimeoutSeconds) / 2) - for { - select { - case <-quitCh: - pingTicker.Stop() - return - case <-pingTicker.C: - con.WriteControl(websocket.PingMessage, []byte("whatevs"), time.Now().Add(time.Second)) - } - } - }() - */ - // Read message go func() { for {