mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 19:31:05 +00:00
Remove unused code in server (#213)
This commit is contained in:
parent
4824bb16a7
commit
3d083ec058
2 changed files with 0 additions and 8 deletions
|
@ -703,16 +703,12 @@ func setupEvilGlobals(c *cli.Context, v store.Store, r remote.Remote) {
|
|||
droneserver.Config.Pipeline.Networks = c.StringSlice("network")
|
||||
droneserver.Config.Pipeline.Volumes = c.StringSlice("volume")
|
||||
droneserver.Config.Pipeline.Privileged = c.StringSlice("escalate")
|
||||
// droneserver.Config.Server.Open = cli.Bool("open")
|
||||
// droneserver.Config.Server.Orgs = sliceToMap(cli.StringSlice("orgs"))
|
||||
// droneserver.Config.Server.Admins = sliceToMap(cli.StringSlice("admin"))
|
||||
|
||||
// prometheus
|
||||
droneserver.Config.Prometheus.AuthToken = c.String("prometheus-auth-token")
|
||||
}
|
||||
|
||||
type authorizer struct {
|
||||
username string
|
||||
password string
|
||||
}
|
||||
|
||||
|
|
|
@ -74,10 +74,6 @@ func setupEnvironService(c *cli.Context, s store.Store) model.EnvironService {
|
|||
return environments.Filesystem(c.StringSlice("environment"))
|
||||
}
|
||||
|
||||
func setupPubsub(c *cli.Context) {}
|
||||
func setupStream(c *cli.Context) {}
|
||||
func setupGatingService(c *cli.Context) {}
|
||||
|
||||
// helper function to setup the remote from the CLI arguments.
|
||||
func SetupRemote(c *cli.Context) (remote.Remote, error) {
|
||||
switch {
|
||||
|
|
Loading…
Reference in a new issue