Remove unused GetReader()

This commit is contained in:
Alexander Neumann 2016-08-07 14:50:41 +02:00
parent 94d157d97a
commit fa283c6ecd
1 changed files with 0 additions and 11 deletions

View File

@ -67,17 +67,6 @@ type Blob struct {
Offset uint Offset uint
} }
// GetReader returns an io.Reader for the blob entry e.
func (e Blob) GetReader(rd io.ReadSeeker) (io.Reader, error) {
// seek to the correct location
_, err := rd.Seek(int64(e.Offset), 0)
if err != nil {
return nil, err
}
return io.LimitReader(rd, int64(e.Length)), nil
}
// Packer is used to create a new Pack. // Packer is used to create a new Pack.
type Packer struct { type Packer struct {
blobs []Blob blobs []Blob