removing unneeded things
@@ -3,13 +3,14 @@ package worker
import (
"context"
"fmt"
- "github.com/concourse/baggageclaim"
- "github.com/concourse/concourse/atc/metric"
"path/filepath"
"sort"
"strings"
"time"
+ "github.com/concourse/baggageclaim"
+ "github.com/concourse/concourse/atc/metric"
+
"code.cloudfoundry.org/garden"
"code.cloudfoundry.org/lager"
"github.com/concourse/concourse/atc"
@@ -23,8 +24,6 @@ const userPropertyName = "user"
//go:generate counterfeiter . Worker
type Worker interface {
- ActiveContainers() int
- ActiveVolumes() int
BuildContainers() int
Description() string
@@ -494,16 +493,6 @@ func (worker *gardenWorker) FindContainerByHandle(logger lager.Logger, teamID in
return container, true, nil
}
-// TODO: are these required on the Worker object?
-// does the caller already have the db.Worker available?
-func (worker *gardenWorker) ActiveContainers() int {
- return worker.dbWorker.ActiveContainers()
-}
-
-func (worker *gardenWorker) ActiveVolumes() int {
- return worker.dbWorker.ActiveVolumes()
-}
-
func (worker *gardenWorker) Name() string {
return worker.dbWorker.Name()
}
