Explorar o código

Remove unused func

Evan Huus %!s(int64=12) %!d(string=hai) anos
pai
achega
8b17b523f5
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      client.go

+ 0 - 9
client.go

@@ -107,15 +107,6 @@ func (client *Client) rcvResponseLoop() {
 	}
 }
 
-func (client *Client) encode(api API, body []byte, pe packetEncoder) {
-	pe.putInt32(int32(len(body)))
-	pe.putInt16(api.key)
-	pe.putInt16(api.version)
-	pe.putInt32(client.correlation_id)
-	pe.putString(client.id)
-	//pe.putRaw(body)
-}
-
 func (client *Client) sendRequest(api API, body encoder) (chan []byte, error) {
 	var prepEnc prepEncoder
 	var realEnc realEncoder