summaryrefslogtreecommitdiffstats
path: root/modules/util/timer.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util/timer.go')
-rw-r--r--modules/util/timer.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/util/timer.go b/modules/util/timer.go
index d598fde73a..f9a7950709 100644
--- a/modules/util/timer.go
+++ b/modules/util/timer.go
@@ -8,18 +8,6 @@ import (
"time"
)
-// StopTimer is a utility function to safely stop a time.Timer and clean its channel
-func StopTimer(t *time.Timer) bool {
- stopped := t.Stop()
- if !stopped {
- select {
- case <-t.C:
- default:
- }
- }
- return stopped
-}
-
func Debounce(d time.Duration) func(f func()) {
type debouncer struct {
mu sync.Mutex