@@ -25,7 +25,6 @@ import (
25
25
26
26
var (
27
27
_ = clock .PassiveClock (& FakePassiveClock {})
28
- _ = clock .WithTicker (& FakeClock {})
29
28
_ = clock .Clock (& IntervalClock {})
30
29
)
31
30
@@ -259,36 +258,30 @@ func (i *IntervalClock) Since(ts time.Time) time.Duration {
259
258
260
259
// After is unimplemented, will panic.
261
260
// TODO: make interval clock use FakeClock so this can be implemented.
262
- func (* IntervalClock ) After (d time.Duration ) <- chan time.Time {
261
+ func (* IntervalClock ) After (time.Duration ) <- chan time.Time {
263
262
panic ("IntervalClock doesn't implement After" )
264
263
}
265
264
266
265
// NewTimer is unimplemented, will panic.
267
266
// TODO: make interval clock use FakeClock so this can be implemented.
268
- func (* IntervalClock ) NewTimer (d time.Duration ) clock.Timer {
267
+ func (* IntervalClock ) NewTimer (time.Duration ) clock.Timer {
269
268
panic ("IntervalClock doesn't implement NewTimer" )
270
269
}
271
270
272
271
// AfterFunc is unimplemented, will panic.
273
272
// TODO: make interval clock use FakeClock so this can be implemented.
274
- func (* IntervalClock ) AfterFunc (d time.Duration , f func ()) clock.Timer {
273
+ func (* IntervalClock ) AfterFunc (time.Duration , func ()) clock.Timer {
275
274
panic ("IntervalClock doesn't implement AfterFunc" )
276
275
}
277
276
278
- // Tick is unimplemented, will panic.
279
- // TODO: make interval clock use FakeClock so this can be implemented.
280
- func (* IntervalClock ) Tick (d time.Duration ) <- chan time.Time {
281
- panic ("IntervalClock doesn't implement Tick" )
282
- }
283
-
284
277
// NewTicker has no implementation yet and is omitted.
285
278
// TODO: make interval clock use FakeClock so this can be implemented.
286
- func (* IntervalClock ) NewTicker (d time.Duration ) clock.Ticker {
279
+ func (* IntervalClock ) NewTicker (time.Duration ) clock.Ticker {
287
280
panic ("IntervalClock doesn't implement NewTicker" )
288
281
}
289
282
290
283
// Sleep is unimplemented, will panic.
291
- func (* IntervalClock ) Sleep (d time.Duration ) {
284
+ func (* IntervalClock ) Sleep (time.Duration ) {
292
285
panic ("IntervalClock doesn't implement Sleep" )
293
286
}
294
287
0 commit comments