From ef68e42378f10953a02b97ff952bd41acb9a8ce7 Mon Sep 17 00:00:00 2001 From: Samiur Arif Date: Tue, 26 Sep 2023 13:29:50 -0700 Subject: [PATCH] removed more dead code. --- internal/signalfx-agent/pkg/utils/ids.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 internal/signalfx-agent/pkg/utils/ids.go 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) - } -}