From a4da6f67cc82a40eea0479766d350a4ba2d1d805 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 29 May 2020 02:04:21 -0400 Subject: [PATCH] chore: remove unused code --- plugins/proxy/proxy.go | 10 ---------- plugins/resource/resource.go | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/plugins/proxy/proxy.go b/plugins/proxy/proxy.go index 70a4406fb..57fc08e9e 100644 --- a/plugins/proxy/proxy.go +++ b/plugins/proxy/proxy.go @@ -93,16 +93,6 @@ func filterAppProxyPorts(appName string, scheme string, hostPort int) []PortMap return filteredProxyMaps } -func getAppName(args []string) (appName string, err error) { - if len(args) >= 1 { - appName = args[0] - } else { - err = errors.New("Please specify an app to run the command on") - } - - return -} - func getAppProxyType(appName string) string { return config.GetWithDefault(appName, "DOKKU_APP_PROXY_TYPE", "nginx") } diff --git a/plugins/resource/resource.go b/plugins/resource/resource.go index 04fcef4b3..7d0ea4c4c 100644 --- a/plugins/resource/resource.go +++ b/plugins/resource/resource.go @@ -1,7 +1,6 @@ package resource import ( - "errors" "fmt" "github.com/dokku/dokku/plugins/common" @@ -63,16 +62,3 @@ func GetResourceValue(appName string, processType string, resourceType string, k func propertyKey(processType string, resourceType string, key string) string { return fmt.Sprintf("%v.%v.%v", processType, resourceType, key) } - -func getAppName(args []string) (string, error) { - if len(args) < 1 { - return "", errors.New("Please specify an app to run the command on") - } - - appName := args[0] - if err := common.VerifyAppName(appName); err != nil { - return "", err - } - - return appName, nil -}