From c784477241d3d7ac9fa7d5daa966bb3f9a9c84cd Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Thu, 20 Apr 2023 11:07:10 +0200 Subject: [PATCH] Fix --- src/serra/helpers.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/serra/helpers.go b/src/serra/helpers.go index 89ffb46..ba427cb 100644 --- a/src/serra/helpers.go +++ b/src/serra/helpers.go @@ -184,29 +184,6 @@ func print_price_history(prices []PriceEntry, prefix string) { } } -func getFloat64(unknown interface{}) (float64, error) { - switch i := unknown.(type) { - case float64: - return i, nil - case float32: - return float64(i), nil - case int64: - return float64(i), nil - case int32: - return float64(i), nil - case int: - return float64(i), nil - case uint64: - return float64(i), nil - case uint32: - return float64(i), nil - case uint: - return float64(i), nil - default: - return math.NaN(), errors.New("Non-numeric type could not be converted to float") - } -} - func filterForDigits(str string) int { var numStr string for _, c := range str {