mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 10:04:07 +00:00
Remove capability package
It's no longer used. This commit can always be reverted later if it's needed again.
This commit is contained in:
@@ -26,7 +26,6 @@ import (
|
||||
"github.com/drone/drone/plugin/remote/gitlab"
|
||||
"github.com/drone/drone/plugin/remote/gogs"
|
||||
"github.com/drone/drone/server/blobstore"
|
||||
"github.com/drone/drone/server/capability"
|
||||
"github.com/drone/drone/server/datastore"
|
||||
"github.com/drone/drone/server/datastore/database"
|
||||
"github.com/drone/drone/server/worker/director"
|
||||
@@ -66,8 +65,6 @@ var (
|
||||
nodes StringArr
|
||||
|
||||
db *sql.DB
|
||||
|
||||
caps map[string]bool
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -100,8 +97,6 @@ func main() {
|
||||
gitlab.Register()
|
||||
gogs.Register()
|
||||
|
||||
caps = map[string]bool{}
|
||||
|
||||
// setup the database and cancel all pending
|
||||
// commits in the system.
|
||||
db = database.MustConnect(*driver, *datasource)
|
||||
@@ -165,7 +160,6 @@ func ContextMiddleware(c *web.C, h http.Handler) http.Handler {
|
||||
ctx = pool.NewContext(ctx, workers)
|
||||
ctx = director.NewContext(ctx, worker)
|
||||
ctx = pubsub.NewContext(ctx, pub)
|
||||
ctx = capability.NewContext(ctx, caps)
|
||||
|
||||
// add the context to the goji web context
|
||||
webcontext.Set(c, ctx)
|
||||
|
Reference in New Issue
Block a user