Skip to content

Commit

Permalink
remove unused compressor argument
Browse files Browse the repository at this point in the history
[#161569370](https://www.pivotaltracker.com/story/show/161569370)

Co-authored-by: Christopher Brown <[email protected]>
  • Loading branch information
2 people authored and Your Name committed Nov 30, 2018
1 parent 36af38d commit 6535744
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions agent/applier/jobs/rendered_job_applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
boshjobsuper "github.com/cloudfoundry/bosh-agent/jobsupervisor"
boshblob "github.com/cloudfoundry/bosh-utils/blobstore"
bosherr "github.com/cloudfoundry/bosh-utils/errors"
boshfileutil "github.com/cloudfoundry/bosh-utils/fileutil"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
boshsys "github.com/cloudfoundry/bosh-utils/system"
)
Expand All @@ -24,7 +23,6 @@ type FixPermissionsFunc func(boshsys.FileSystem, string, string, string) error

type renderedJobApplier struct {
blobstore boshblob.DigestBlobstore
compressor boshfileutil.Compressor
dirProvider directories.Provider
fixPermissions FixPermissionsFunc
fs boshsys.FileSystem
Expand All @@ -40,14 +38,12 @@ func NewRenderedJobApplier(
jobSupervisor boshjobsuper.JobSupervisor,
packageApplierProvider packages.ApplierProvider,
blobstore boshblob.DigestBlobstore,
compressor boshfileutil.Compressor,
fixPermissions FixPermissionsFunc,
fs boshsys.FileSystem,
logger boshlog.Logger,
) Applier {
return &renderedJobApplier{
blobstore: blobstore,
compressor: compressor,
dirProvider: dirProvider,
fixPermissions: fixPermissions,
fs: fs,
Expand Down
4 changes: 0 additions & 4 deletions agent/applier/jobs/rendered_job_applier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
fakepackages "github.com/cloudfoundry/bosh-agent/agent/applier/packages/fakes"
fakejobsuper "github.com/cloudfoundry/bosh-agent/jobsupervisor/fakes"
fakeblob "github.com/cloudfoundry/bosh-utils/blobstore/fakes"
fakecmd "github.com/cloudfoundry/bosh-utils/fileutil/fakes"
fakesys "github.com/cloudfoundry/bosh-utils/system/fakes"
)

Expand Down Expand Up @@ -83,7 +82,6 @@ func init() {
jobSupervisor *fakejobsuper.FakeJobSupervisor
packageApplierProvider *fakepackages.FakeApplierProvider
blobstore *fakeblob.FakeDigestBlobstore
compressor *fakecmd.FakeCompressor
fs *fakesys.FakeFileSystem
applier Applier
fixPermissions *fakeFixer
Expand All @@ -95,7 +93,6 @@ func init() {
packageApplierProvider = fakepackages.NewFakeApplierProvider()
blobstore = &fakeblob.FakeDigestBlobstore{}
fs = fakesys.NewFakeFileSystem()
compressor = fakecmd.NewFakeCompressor()
logger := boshlog.NewLogger(boshlog.LevelNone)
dirProvider := directories.NewProvider("/fakebasedir")
fixPermissions = &fakeFixer{}
Expand All @@ -106,7 +103,6 @@ func init() {
jobSupervisor,
packageApplierProvider,
blobstore,
compressor,
fixPermissions.Fix,
fs,
logger,
Expand Down
1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ func (app *app) buildApplierAndCompiler(
jobSupervisor,
packageApplierProvider,
blobstore,
app.platform.GetCompressor(),
boshaj.FixPermissions,
fileSystem,
app.logger,
Expand Down

0 comments on commit 6535744

Please sign in to comment.