From 4a2230bfc8e8fafc1d80b3111b04c996da3f5064 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 11 Dec 2013 16:43:29 -0800 Subject: [PATCH] Remove unused methods --- consul/serf.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/consul/serf.go b/consul/serf.go index b1cb828aec..ed16950da2 100644 --- a/consul/serf.go +++ b/consul/serf.go @@ -18,11 +18,8 @@ func (s *Server) lanEventHandler() { case serf.EventMemberJoin: s.localJoin(e.(serf.MemberEvent)) case serf.EventMemberLeave: - s.localLeave(e.(serf.MemberEvent)) case serf.EventMemberFailed: - s.localFailed(e.(serf.MemberEvent)) case serf.EventUser: - s.localEvent(e.(serf.UserEvent)) default: s.logger.Printf("[WARN] Unhandled LAN Serf Event: %#v", e) } @@ -73,18 +70,6 @@ func (s *Server) localJoin(me serf.MemberEvent) { } } -// localLeave is used to handle leave events on the lan serf cluster -func (s *Server) localLeave(me serf.MemberEvent) { -} - -// localFailed is used to handle fail events on the lan serf cluster -func (s *Server) localFailed(me serf.MemberEvent) { -} - -// localEvent is used to handle events on the lan serf cluster -func (s *Server) localEvent(ue serf.UserEvent) { -} - // remoteJoin is used to handle join events on the wan serf cluster func (s *Server) remoteJoin(me serf.MemberEvent) { for _, m := range me.Members {