Skip to content
Permalink
Browse files

clean: removed unused method

  • Loading branch information...
caarlos0 committed Nov 16, 2018
1 parent a17d51c commit e966f9956a678c321269fabb6b147ad9407fb4cd
Showing with 2 additions and 21 deletions.
  1. +2 −21 internal/http/http_test.go
@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/pem"
"fmt"
"io"
"io/ioutil"
h "net/http"
"net/http/httptest"
@@ -14,12 +13,11 @@ import (
"sync"
"testing"

"github.com/pkg/errors"
"github.com/stretchr/testify/require"

"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
)

func TestAssetOpenDefault(t *testing.T) {
@@ -113,23 +111,6 @@ func TestCheckConfig(t *testing.T) {
}
}

func count(r io.Reader) (int64, error) {
var (
c int64
b int64
err error
buf = make([]byte, 16)
)
for b >= 0 && err == nil {
b, err := r.Read(buf)
if err != nil {
return c, err
}
c = c + int64(b)
}
return c, nil
}

type check struct {
path string
user string

0 comments on commit e966f99

Please sign in to comment.
You can’t perform that action at this time.