fix(pkg/storage/logfile): remove func append - dead code
This commit is contained in:
parent
0765bd29d1
commit
c266117785
@ -86,7 +86,7 @@ func PrintSensors(cnf *config.Configuration, w io.Writer) error {
|
||||
}
|
||||
|
||||
if sensor.I2CAddress != nil {
|
||||
fmt.Fprintf(tw, "%v\t", *sensor.I2CAddress)
|
||||
fmt.Fprintf(tw, "%v\t", string(*sensor.I2CAddress))
|
||||
} else {
|
||||
fmt.Fprintf(tw, "\t")
|
||||
}
|
||||
|
@ -7,20 +7,6 @@ import (
|
||||
"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
|
||||
// file extension of the logfile is taken into account to format the logfile
|
||||
// into the correct format.
|
||||
|
Loading…
Reference in New Issue
Block a user