fix(pkg/storage/logfile): remove func append - dead code

This commit is contained in:
Markus Pesch 2020-01-13 22:45:51 +01:00
parent 0765bd29d1
commit c266117785
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 1 additions and 15 deletions

View File

@ -86,7 +86,7 @@ func PrintSensors(cnf *config.Configuration, w io.Writer) error {
} }
if sensor.I2CAddress != nil { if sensor.I2CAddress != nil {
fmt.Fprintf(tw, "%v\t", *sensor.I2CAddress) fmt.Fprintf(tw, "%v\t", string(*sensor.I2CAddress))
} else { } else {
fmt.Fprintf(tw, "\t") fmt.Fprintf(tw, "\t")
} }

View File

@ -7,20 +7,6 @@ import (
"github.com/go-flucky/flucky/pkg/types" "github.com/go-flucky/flucky/pkg/types"
) )
// Append adds an array of several measured values to a logfile
func Append(logfile Logfile, measuredValues []*types.MeasuredValue) error {
allMeasuredValues, err := logfile.Read()
if err != nil {
return err
}
allMeasuredValues = append(allMeasuredValues, measuredValues...)
err = logfile.Write(allMeasuredValues)
if err != nil {
return err
}
return nil
}
// New returns a log file with basic functions for reading and writing data. The // New returns a log file with basic functions for reading and writing data. The
// file extension of the logfile is taken into account to format the logfile // file extension of the logfile is taken into account to format the logfile
// into the correct format. // into the correct format.