From e21b86444738dc0881d185f3e3a5d96896b6a32f Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Fri, 15 Nov 2013 20:42:16 +0000
Subject: [PATCH] remove some dead code

---
 masterelection/masterelection.go | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/masterelection/masterelection.go b/masterelection/masterelection.go
index 93eb2f1a..eb89748c 100644
--- a/masterelection/masterelection.go
+++ b/masterelection/masterelection.go
@@ -92,19 +92,6 @@ func (m *MasterElection) stopper() {
 	}
 }
 
-func boolTimer(delay time.Duration) chan bool {
-	ch := make(chan bool)
-	go func() {
-		time.Sleep(delay)
-		close(ch)
-	}()
-	return ch
-}
-
-func (m *MasterElection) loop() {
-
-}
-
 func (m *MasterElection) runMaster(index uint64) {
 	m.setState(STATE_MASTER)
 
@@ -116,7 +103,7 @@ func (m *MasterElection) runMaster(index uint64) {
 
 	for {
 		select {
-		case t := <- tick.C:
+		case t := <-tick.C:
 			// To verify that we actually are still the
 			// master (not just we believe we are), try
 			// yet another compare-and-swap to check that
-- 
GitLab