Remove unused func from internal interface batch (#5462)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
parent
868a089679
commit
e46dfb9a02
|
|
@ -64,9 +64,6 @@ type batch interface {
|
||||||
// itemCount returns the size of the current batch
|
// itemCount returns the size of the current batch
|
||||||
itemCount() int
|
itemCount() int
|
||||||
|
|
||||||
// size returns the size in bytes of the current batch
|
|
||||||
size() int
|
|
||||||
|
|
||||||
// add item to the current batch
|
// add item to the current batch
|
||||||
add(item interface{})
|
add(item interface{})
|
||||||
}
|
}
|
||||||
|
|
@ -269,10 +266,6 @@ func (bt *batchTraces) itemCount() int {
|
||||||
return bt.spanCount
|
return bt.spanCount
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bt *batchTraces) size() int {
|
|
||||||
return bt.sizer.TracesSize(bt.traceData)
|
|
||||||
}
|
|
||||||
|
|
||||||
type batchMetrics struct {
|
type batchMetrics struct {
|
||||||
nextConsumer consumer.Metrics
|
nextConsumer consumer.Metrics
|
||||||
metricData pmetric.Metrics
|
metricData pmetric.Metrics
|
||||||
|
|
@ -308,10 +301,6 @@ func (bm *batchMetrics) itemCount() int {
|
||||||
return bm.dataPointCount
|
return bm.dataPointCount
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bm *batchMetrics) size() int {
|
|
||||||
return bm.sizer.MetricsSize(bm.metricData)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (bm *batchMetrics) add(item interface{}) {
|
func (bm *batchMetrics) add(item interface{}) {
|
||||||
md := item.(pmetric.Metrics)
|
md := item.(pmetric.Metrics)
|
||||||
|
|
||||||
|
|
@ -358,10 +347,6 @@ func (bl *batchLogs) itemCount() int {
|
||||||
return bl.logCount
|
return bl.logCount
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bl *batchLogs) size() int {
|
|
||||||
return bl.sizer.LogsSize(bl.logData)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (bl *batchLogs) add(item interface{}) {
|
func (bl *batchLogs) add(item interface{}) {
|
||||||
ld := item.(plog.Logs)
|
ld := item.(plog.Logs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue