1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: removed unused functions

This commit is contained in:
Southclaws 2018-02-10 13:19:40 +00:00 committed by Carlos Alexandro Becker
parent 45bb3a0a7f
commit 98433ca412

View File

@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/client"
@ -44,24 +43,6 @@ func (Pipe) Default(ctx *context.Context) error {
return nil
}
func isScoopBuild(build config.Build) bool {
for _, ignore := range build.Ignore {
if ignore.Goos == "windows" {
return false
}
}
return contains(build.Goos, "darwin")
}
func contains(ss []string, s string) bool {
for _, zs := range ss {
if zs == s {
return true
}
}
return false
}
func doRun(ctx *context.Context, client client.Client) error {
if ctx.Config.Scoop.Bucket.Name == "" {
return pipeline.Skip("scoop section is not configured")