From ebb5f714c5378babd1af47812a883b239d4c25b3 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Tue, 13 Dec 2016 20:47:52 -0500 Subject: [PATCH] remove ErrCallbackTimedout --- client.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client.go b/client.go index 6cf9613..543a3a7 100644 --- a/client.go +++ b/client.go @@ -85,18 +85,6 @@ type Config struct { DisableNickCollision bool } -// ErrCallbackTimedout is used when we need to wait for temporary callbacks. -type ErrCallbackTimedout struct { - // ID is the identified of the callback in the callback stack. - ID string - // Timeout is the time that past before the callback timed out. - Timeout time.Duration -} - -func (e *ErrCallbackTimedout) Error() string { - return "callback [" + e.ID + "] timed out while waiting for response from the server: " + e.Timeout.String() -} - // ErrNotConnected is returned if a method is used when the client isn't // connected. var ErrNotConnected = errors.New("client is not connected to server")