From 28d0e057df97a86527e29683dac0203beb9dbc0a Mon Sep 17 00:00:00 2001 From: edwardro22 Date: Wed, 24 Jan 2018 08:30:04 +0200 Subject: [PATCH] Removed Float64SlicePointer --- utils/coreutils.go | 4 ---- utils/coreutils_test.go | 9 --------- 2 files changed, 13 deletions(-) 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