diff --git a/algo/algo.go b/algo/algo.go index 9fa247c..0b7ec79 100644 --- a/algo/algo.go +++ b/algo/algo.go @@ -11,10 +11,6 @@ import ( "git.dotya.ml/wanderer/math-optim/stats" ) -// Values type is just a fancy named []float64 that will allow us to define -// methods over it. -type Values []float64 - // mu protects access to meanStats. var mu sync.Mutex @@ -125,8 +121,3 @@ func DoStochasticHillClimbing(wg *sync.WaitGroup, m *sync.Mutex) { stats.SaveTable(algoName, algoStats) m.Unlock() } - -func newValues() *Values { - var v Values - return &v -} diff --git a/algo/algo_test.go b/algo/algo_test.go index 9ac84c0..c459bc8 100644 --- a/algo/algo_test.go +++ b/algo/algo_test.go @@ -54,9 +54,3 @@ func TestDoSHCExec(t *testing.T) { t.Error("picsDir should have already been cleaned up") } } - -func TestNewValues(t *testing.T) { - if v := newValues(); v == nil { - t.Error("failed to get values from newValues()") - } -}