Skip to content

Commit

Permalink
Merge pull request #1188 from alexander-melentyev/refactor/deadcode
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
sagikazarmark authored Sep 28, 2021
2 parents 251777f + cc73a6f commit 2e73545
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
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

0 comments on commit 2e73545

Please sign in to comment.