From 4833df4552d6b6ecb9bf266393b46e50405df279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=89=E6=9D=83?= Date: Fri, 18 Mar 2016 16:56:10 +0800 Subject: [PATCH] remove unsed function --- plugins/inputs/ipmi/ipmi.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/plugins/inputs/ipmi/ipmi.go b/plugins/inputs/ipmi/ipmi.go index 4c4574f9e..92fe769e6 100644 --- a/plugins/inputs/ipmi/ipmi.go +++ b/plugins/inputs/ipmi/ipmi.go @@ -2,7 +2,6 @@ package ipmi import ( - "fmt" "strconv" "strings" "time" @@ -81,16 +80,6 @@ func (m *Ipmi) gatherServer(serv string, acc telegraf.Accumulator) error { return nil } -func Atofloat4(val float64) float64 { - str := fmt.Sprintf("%.4f", val) - return Atofloat(str) -} - -func Atofloat2(val float64) float64 { - str := fmt.Sprintf("%.2f", val) - return Atofloat(str) -} - func Atofloat(val string) float64 { f, err := strconv.ParseFloat(val, 64) if err != nil {