Skip to content

Commit cc73a6f

Browse files
author
Alexander Melentyev
committed
Remove unused code
1 parent 251777f commit cc73a6f

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

metrics/cloudwatch/cloudwatch.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,6 @@ func sum(a []float64) float64 {
271271
return v
272272
}
273273

274-
func last(a []float64) float64 {
275-
return a[len(a)-1]
276-
}
277-
278274
func min(a, b int) int {
279275
if a < b {
280276
return a

metrics/dogstatsd/dogstatsd.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ func sum(a []float64) float64 {
209209
return v
210210
}
211211

212-
func last(a []float64) float64 {
213-
return a[len(a)-1]
214-
}
215-
216212
func sampling(r float64) string {
217213
var sv string
218214
if r < 1.0 {

metrics/influxstatsd/influxstatsd.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ func sum(a []float64) float64 {
208208
return v
209209
}
210210

211-
func last(a []float64) float64 {
212-
return a[len(a)-1]
213-
}
214-
215211
func sampling(r float64) string {
216212
var sv string
217213
if r < 1.0 {

sd/zk/util_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package zk
22

33
import (
4-
"context"
54
"errors"
65
"fmt"
76
"io"
@@ -17,7 +16,6 @@ import (
1716

1817
var (
1918
path = "/gokit.test/service.name"
20-
e = func(context.Context, interface{}) (interface{}, error) { return struct{}{}, nil }
2119
logger = log.NewNopLogger()
2220
)
2321

0 commit comments

Comments
 (0)