diff --git a/utils/coreutils.go b/utils/coreutils.go index 2fc088788..fca396d6a 100644 --- a/utils/coreutils.go +++ b/utils/coreutils.go @@ -454,10 +454,6 @@ func BoolPointer(b bool) *bool { return &b } -func Float64SlicePointer(slc []float64) *[]float64 { - return &slc -} - func StringMapPointer(sm StringMap) *StringMap { return &sm } diff --git a/utils/coreutils_test.go b/utils/coreutils_test.go index 8a6b88965..fc124d283 100644 --- a/utils/coreutils_test.go +++ b/utils/coreutils_test.go @@ -685,15 +685,6 @@ func TestBoolPointer(t *testing.T) { } } -func TestFloat64SlicePointer(t *testing.T) { - t1 := []float64{1.2, 12.3, 123.4, 1234.5} - expected := &t1 - result := Float64SlicePointer(t1) - if *result == nil { - t.Error("Expected:", expected, ", received: nil") - } -} - func TestStringMapPointer(t *testing.T) { t1 := map[string]bool{"cgr1": true, "cgr2": true} expected := &t1