diff --git a/internal/signalfx-agent/pkg/utils/ids.go b/internal/signalfx-agent/pkg/utils/ids.go deleted file mode 100644 index 776895ad4d..0000000000 --- a/internal/signalfx-agent/pkg/utils/ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package utils - -import ( - "strconv" - "sync" -) - -// NewIDGenerator returns a function that will produce, for any given generator -// instance, a unique, non-empty, string value each time it is called. -func NewIDGenerator() func() string { - lock := sync.Mutex{} - nextID := 0 - - return func() string { - lock.Lock() - defer lock.Unlock() - - nextID++ - return strconv.Itoa(nextID) - } -}