chore: remove unused code
This commit is contained in:
1 parent
a93cec63be
commit
a4da6f67cc
2 files changed
-24
No files matched your search
@@ -93,16 +93,6 @@ func filterAppProxyPorts(appName string, scheme string, hostPort int) []PortMap
|
|||||||
return filteredProxyMaps
|
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 {
|
func getAppProxyType(appName string) string {
|
||||||
return config.GetWithDefault(appName, "DOKKU_APP_PROXY_TYPE", "nginx")
|
return config.GetWithDefault(appName, "DOKKU_APP_PROXY_TYPE", "nginx")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package resource
|
package resource
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/dokku/dokku/plugins/common"
|
"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 {
|
func propertyKey(processType string, resourceType string, key string) string {
|
||||||
return fmt.Sprintf("%v.%v.%v", processType, resourceType, key)
|
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
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user