go(algo): rm unused Values type
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-07-27 17:29:31 +02:00
parent ea3d57acd8
commit 1ec7a62281
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 0 additions and 15 deletions

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

@ -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()")
}
}