From dddae13c7a6d6e65c27fc86b8927381f20fcbade Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Wed, 4 Feb 2026 10:28:37 +0100 Subject: [PATCH] Fix func intArrayContains is unused (unused) --- collectors/metricCollector.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/collectors/metricCollector.go b/collectors/metricCollector.go index b6799d4..cc0cb63 100644 --- a/collectors/metricCollector.go +++ b/collectors/metricCollector.go @@ -51,18 +51,6 @@ func (c *metricCollector) Initialized() bool { return c.init } -// intArrayContains scans an array of ints if the value str is present in the array -// If the specified value is found, the corresponding array index is returned. -// The bool value is used to signal success or failure -func intArrayContains(array []int, str int) (int, bool) { - for i, a := range array { - if a == str { - return i, true - } - } - return -1, false -} - // stringArrayContains scans an array of strings if the value str is present in the array // If the specified value is found, the corresponding array index is returned. // The bool value is used to signal success or failure