Removed Float64SlicePointer

This commit is contained in:
edwardro22
2018-01-24 08:30:04 +02:00
parent ada7dc710a
commit 28d0e057df
2 changed files with 0 additions and 13 deletions

View File

@@ -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
}

View File

@@ -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