@@ -63,13 +63,10 @@ func Reset() *clockapi.Mock {
6363// package.
6464type Clock struct {
6565 mock *clockapi.Mock
66− sync.Mutex
6766}
6867
6968// Set sets the Clock to a clock.Mock at the given time.Time
7069func (c *Clock) Set(t time.Time) {
71− c.Lock()
72− defer c.Unlock()
7370 if c.mock == nil {
7471 c.mock = clockapi.NewMock()
7572 }
@@ -79,8 +76,6 @@ func (c *Clock) Set(t time.Time) {
7976// Add moves clock forward time.Duration if it is mocked. It will error
8077// if the clock is not mocked.
8178func (c *Clock) Add(d time.Duration) error {
82− c.Lock()
83− defer c.Unlock()
8479 if c.mock == nil {
8580 return errors.New("clock not mocked")
8681 }
@@ -91,8 +86,6 @@ func (c *Clock) Add(d time.Duration) error {
9186// Reset removes local clock.Mock. Returns any existing Mock if set in case
9287// lingering time operations are attached to it.
9388func (c *Clock) Reset() *clockapi.Mock {
94− c.Lock()
95− defer c.Unlock()
9689 existing := c.mock
9790 c.mock = nil
9891 return existing