From 498b07762707f74fbaed4eecb945453160a522fe Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 3 Mar 2017 18:27:49 -0800 Subject: [PATCH] Remove dead code --- nomad/pool.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/nomad/pool.go b/nomad/pool.go index 0e7e29427..320e7a320 100644 --- a/nomad/pool.go +++ b/nomad/pool.go @@ -373,30 +373,6 @@ func (p *ConnPool) RPC(region string, addr net.Addr, version int, method string, return nil } -// PingNomadServer sends a Status.Ping message to the specified server and -// returns true if healthy, false if an error occurred -func (p *ConnPool) PingNomadServer(region string, apiMajorVersion int, s net.Addr) (bool, error) { - // Get a usable client - conn, sc, err := p.getClient(region, s, apiMajorVersion) - if err != nil { - return false, err - } - - // Make the RPC call - var out struct{} - err = msgpackrpc.CallWithCodec(sc.codec, "Status.Ping", struct{}{}, &out) - if err != nil { - sc.Close() - p.releaseConn(conn) - return false, err - } - - // Done with the connection - conn.returnClient(sc) - p.releaseConn(conn) - return true, nil -} - // Reap is used to close conns open over maxTime func (p *ConnPool) reap() { for {