瀏覽代碼

Remove forgotten struct

DarthSim 7 年之前
父節點
當前提交
94baf32120
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      timer.go

+ 0 - 5
timer.go

@@ -8,11 +8,6 @@ import (
 
 
 var timerSinceCtxKey = ctxKey("timerSince")
 var timerSinceCtxKey = ctxKey("timerSince")
 
 
-type timer struct {
-	StartTime time.Time
-	Timer     <-chan time.Time
-}
-
 func startTimer(d time.Duration) (context.Context, context.CancelFunc) {
 func startTimer(d time.Duration) (context.Context, context.CancelFunc) {
 	return context.WithTimeout(
 	return context.WithTimeout(
 		context.WithValue(context.Background(), timerSinceCtxKey, time.Now()),
 		context.WithValue(context.Background(), timerSinceCtxKey, time.Now()),