From 96059ef29407d590b02578d80b9fc98e4a3f09d0 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 29 Jan 2017 10:26:59 +0100 Subject: [PATCH] test: remove code no longer used from utils Signed-off-by: deadprogram --- utils.go | 16 ---------------- 1 file changed, 16 deletions(-) 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