diff --git a/utils.go b/utils.go index 866259f9f..19729a40e 100644 --- a/utils.go +++ b/utils.go @@ -2,27 +2,11 @@ package gobot import ( "crypto/rand" - "errors" - "log" "math" "math/big" "time" ) -var ( - // ErrUnknownEvent is the error resulting if the specified Event does not exist - ErrUnknownEvent = errors.New("Event does not exist") -) - -var eventError = func(e *Event) (err error) { - if e == nil { - err = ErrUnknownEvent - log.Println(err.Error()) - return - } - return -} - // Every triggers f every t time.Duration until the end of days, or when a Stop() // is called on the Ticker that is returned by the Every function. // It does not wait for the previous execution of f to finish before