changeset 3103:247e78ba2bf7

Nash Sutcliffe: Removed dead code.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 25 Apr 2019 13:11:41 +0200
parents a9c7825303b3
children 19fc84a98479
files pkg/common/nashsutcliffe.go
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/common/nashsutcliffe.go	Thu Apr 25 12:48:08 2019 +0200
+++ b/pkg/common/nashsutcliffe.go	Thu Apr 25 13:11:41 2019 +0200
@@ -15,7 +15,6 @@
 
 import (
 	"fmt"
-	"sort"
 	"time"
 )
 
@@ -26,12 +25,6 @@
 
 type TimedValues []TimedValue
 
-func (mvs TimedValues) Sort() {
-	sort.Slice(mvs, func(i, j int) bool {
-		return mvs[i].When.Before(mvs[j].When)
-	})
-}
-
 func epsEquals(a, b time.Time) bool {
 	d := a.Sub(b)
 	return -10*time.Millisecond < d && d < 10*time.Millisecond