Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions metrics/cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ func sum(a []float64) float64 {
return v
}

func last(a []float64) float64 {
return a[len(a)-1]
}

func min(a, b int) int {
if a < b {
return a
Expand Down
4 changes: 0 additions & 4 deletions metrics/dogstatsd/dogstatsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ func sum(a []float64) float64 {
return v
}

func last(a []float64) float64 {
return a[len(a)-1]
}

func sampling(r float64) string {
var sv string
if r < 1.0 {
Expand Down
4 changes: 0 additions & 4 deletions metrics/influxstatsd/influxstatsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ func sum(a []float64) float64 {
return v
}

func last(a []float64) float64 {
return a[len(a)-1]
}

func sampling(r float64) string {
var sv string
if r < 1.0 {
Expand Down
2 changes: 0 additions & 2 deletions sd/zk/util_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package zk

import (
"context"
"errors"
"fmt"
"io"
Expand All @@ -17,7 +16,6 @@ import (

var (
path = "/gokit.test/service.name"
e = func(context.Context, interface{}) (interface{}, error) { return struct{}{}, nil }
logger = log.NewNopLogger()
)

Expand Down