Remove unused code in server (#213)

This commit is contained in:
Marian Steinbach 2021-05-31 14:34:00 +02:00 committed by GitHub
parent 4824bb16a7
commit 3d083ec058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -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.Networks = c.StringSlice("network")
droneserver.Config.Pipeline.Volumes = c.StringSlice("volume") droneserver.Config.Pipeline.Volumes = c.StringSlice("volume")
droneserver.Config.Pipeline.Privileged = c.StringSlice("escalate") 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 // prometheus
droneserver.Config.Prometheus.AuthToken = c.String("prometheus-auth-token") droneserver.Config.Prometheus.AuthToken = c.String("prometheus-auth-token")
} }
type authorizer struct { type authorizer struct {
username string
password string password string
} }

View file

@ -74,10 +74,6 @@ func setupEnvironService(c *cli.Context, s store.Store) model.EnvironService {
return environments.Filesystem(c.StringSlice("environment")) 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. // helper function to setup the remote from the CLI arguments.
func SetupRemote(c *cli.Context) (remote.Remote, error) { func SetupRemote(c *cli.Context) (remote.Remote, error) {
switch { switch {