Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
This code was only referenced by tests. Possibly was an unfinished
refactor.
  • Loading branch information
aramprice committed Jul 23, 2024
1 parent df0c7f4 commit b161ff4
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 1,443 deletions.
5 changes: 0 additions & 5 deletions package_stemcell/packagers/export_test.go

This file was deleted.

40 changes: 0 additions & 40 deletions package_stemcell/packagers/packager.go

This file was deleted.

62 changes: 0 additions & 62 deletions package_stemcell/packagers/packager_test.go

This file was deleted.

108 changes: 0 additions & 108 deletions package_stemcell/packagers/packagersfakes/fake_source.go

This file was deleted.

112 changes: 0 additions & 112 deletions package_stemcell/packagers/packagersfakes/fake_stemcell_generator.go

This file was deleted.

23 changes: 0 additions & 23 deletions package_stemcell/packagers/vmdk_packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,8 @@ type VmdkPackager struct {
BuildOptions package_parameters.VmdkPackageParameters
}

type CancelReadSeeker struct {
rs io.ReadSeeker
stop chan struct{}
}

var ErrInterupt = errors.New("interrupt")

func (r *CancelReadSeeker) Seek(offset int64, whence int) (int64, error) {
select {
case <-r.stop:
return 0, ErrInterupt
default:
return r.rs.Seek(offset, whence)
}
}

func (r *CancelReadSeeker) Read(p []byte) (int, error) {
select {
case <-r.stop:
return 0, ErrInterupt
default:
return r.rs.Read(p)
}
}

type CancelWriter struct {
w io.Writer
stop chan struct{}
Expand Down
18 changes: 0 additions & 18 deletions package_stemcell/stemcell_generator/filename/filename.go

This file was deleted.

This file was deleted.

Loading

0 comments on commit b161ff4

Please sign in to comment.