Hotfix: remove unused code

This commit is contained in:
Quentin McGaw
2021-05-12 00:57:00 +00:00
parent 1540660cc3
commit 0099c06056
2 changed files with 0 additions and 12 deletions

View File

@@ -16,7 +16,6 @@ type Order interface {
type order struct {
waves []Wave
total int // for logging only
}
func NewOrder() Order {

View File

@@ -13,17 +13,6 @@ type routine struct {
timeout time.Duration
}
func newRoutine(name string) (r routine,
ctx context.Context, done chan struct{}) {
ctx, cancel := context.WithCancel(context.Background())
done = make(chan struct{})
return routine{
name: name,
cancel: cancel,
done: done,
}, ctx, done
}
func (r *routine) shutdown(ctx context.Context) (err error) {
ctx, cancel := context.WithTimeout(ctx, r.timeout)
defer cancel()