Remove metric.Point from metric interface

This commit is contained in:
Cameron Sparr
2017-02-03 16:41:45 +00:00
parent b1945c0493
commit 694955c87b
4 changed files with 0 additions and 36 deletions

View File

@@ -9,9 +9,6 @@ import (
"time"
"github.com/influxdata/telegraf"
// TODO remove
"github.com/influxdata/influxdb/client/v2"
)
const MaxInt = int(^uint(0) >> 1)
@@ -137,11 +134,6 @@ type metric struct {
nsec int64
}
func (m *metric) Point() *client.Point {
c, _ := client.NewPoint(m.Name(), m.Tags(), m.Fields(), m.Time())
return c
}
func (m *metric) String() string {
return string(m.name) + string(m.tags) + " " + string(m.fields) + " " + string(m.t) + "\n"
}