From 1ec7a6228192ecaa93a05da4d14ec875d4fd33e0 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 27 Jul 2022 17:29:31 +0200 Subject: [PATCH] go(algo): rm unused Values type --- algo/algo.go | 9 --------- algo/algo_test.go | 6 ------ 2 files changed, 15 deletions(-) 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()") - } -}