From f739c81797ada7bc3dd0412c20e26928a73dedc5 Mon Sep 17 00:00:00 2001
From: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Date: Fri, 12 Jun 2020 21:24:54 -0300
Subject: [PATCH] fix: removed unused code (#1605)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
---
 internal/static/config.go |  3 +++
 internal/static/doc.go    |  4 ---
 internal/static/usage.go  | 54 ---------------------------------------
 3 files changed, 3 insertions(+), 58 deletions(-)
 delete mode 100644 internal/static/doc.go
 delete mode 100644 internal/static/usage.go

diff --git a/internal/static/config.go b/internal/static/config.go
index b0d91dfd9..2ce50ef16 100644
--- a/internal/static/config.go
+++ b/internal/static/config.go
@@ -1,3 +1,6 @@
+// Package static contains static "text" files, just because embedding real
+// static files would be kind of an overengineering right now, so it's just
+// strings in go code really.
 package static
 
 // ExampleConfig is the config used within goreleaser init.
diff --git a/internal/static/doc.go b/internal/static/doc.go
deleted file mode 100644
index 37aa2932b..000000000
--- a/internal/static/doc.go
+++ /dev/null
@@ -1,4 +0,0 @@
-// Package static contains static "text" files, just because embedding real
-// static files would be kind of an overengineering right now, so it's just
-// strings in go code really.
-package static
diff --git a/internal/static/usage.go b/internal/static/usage.go
deleted file mode 100644
index ce5afc5fe..000000000
--- a/internal/static/usage.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package static
-
-// UsageTemplate for goreleaser CLI.
-// nolint: gochecknoglobals
-const UsageTemplate = `{{define "FormatCommand"}}\
-{{if .FlagSummary}} {{.FlagSummary}}{{end}}\
-{{range .Args}} {{if not .Required}}[{{end}}<{{.Name}}>{{if .Value|IsCumulative}}...{{end}}{{if not .Required}}]{{end}}{{end}}\
-{{end}}\
-
-{{define "FormatCommands"}}\
-{{range .FlattenedCommands}}\
-{{if not .Hidden}}\
-  {{.FullCommand}}{{template "FormatCommand" .}}{{if .Default}} (default){{end}}
-{{.Help|Wrap 4}}
-{{end}}\
-{{end}}\
-{{end}}\
-
-{{define "FormatUsage"}}\
-{{template "FormatCommand" .}}{{if .Commands}} <command> [<args> ...]{{end}}
-{{end}}\
-
-{{if .Context.SelectedCommand}}\
-{{with .Context.SelectedCommand.Help}}\
-{{. | Wrap 0}}
-{{end}}\
-{{else}}\
-{{.App.Help | Wrap 0}}
-{{end}}\
-
-USAGE:
-{{if .Context.SelectedCommand}}\
-  $ {{.App.Name}} {{.Context.SelectedCommand}}{{template "FormatUsage" .Context.SelectedCommand}}
-{{else}}\
-  $ {{.App.Name}}{{template "FormatUsage" .App}}
-{{end}}\
-{{if .Context.Flags}}\
-FLAGS:
-{{.Context.Flags|FlagsToTwoColumns|FormatTwoColumns}}
-{{end}}\
-{{if .Context.Args}}\
-ARGS:
-{{.Context.Args|ArgsToTwoColumns|FormatTwoColumns}}
-{{end}}\
-{{if .Context.SelectedCommand}}\
-{{if len .Context.SelectedCommand.Commands}}\
-SUBCOMMANDS:
-{{template "FormatCommands" .Context.SelectedCommand}}
-{{end}}\
-{{else if .App.Commands}}\
-COMMANDS:
-{{template "FormatCommands" .App}}
-{{end}}\
-`