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:
Matt Bostock
2015-01-16 18:50:26 +00:00
parent 307aed12bc
commit c48c6ebc88
5 changed files with 0 additions and 88 deletions

View File

@@ -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)