Skip to content

Commit

Permalink
test: remove code no longer used from utils
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Jan 29, 2017
1 parent 18a18e2 commit 96059ef
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96059ef

Please sign in to comment.