Skip to content

Commit

Permalink
Delete dead code for exporting images in tar files
Browse files Browse the repository at this point in the history
  • Loading branch information
glyn committed Jun 13, 2019
1 parent 9e38ca0 commit b76a500
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 96 deletions.
2 changes: 1 addition & 1 deletion cmd/duffle/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (ex *exportCmd) run() error {
}

func (ex *exportCmd) Export(bundlefile string, l loader.BundleLoader) error {
is, err := packager.NewImageStore(ex.thin, true)
is, err := packager.NewImageStore(ex.thin)
if err != nil {
return err
}
Expand Down
8 changes: 2 additions & 6 deletions pkg/packager/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,11 @@ type ImageStore interface {
add(img string) (contentDigest string, err error)
}

func NewImageStore(thin bool, ociLayout bool) (ImageStore, error) {
func NewImageStore(thin bool) (ImageStore, error) {
if thin {
return newNop(), nil
}
if ociLayout {
return newOciLayout(), nil
}
return newTarFiles()

return newOciLayout(), nil
}

// Export prepares an artifacts directory containing all of the necessary
Expand Down
89 changes: 0 additions & 89 deletions pkg/packager/tarfiles.go

This file was deleted.

0 comments on commit b76a500

Please sign in to comment.