Remove unused method from multireader package
Signed-off-by: Weerasak Chongnguluam <singpor@gmail.com>
This commit is contained in:
parent
1690103906
commit
6e5fba98a5
1 changed files with 0 additions and 16 deletions
|
@ -138,22 +138,6 @@ func (r *multiReadSeeker) getCurOffset() (int64, error) {
|
|||
return totalSize, nil
|
||||
}
|
||||
|
||||
func (r *multiReadSeeker) getOffsetToReader(rdr io.ReadSeeker) (int64, error) {
|
||||
var offset int64
|
||||
for _, r := range r.readers {
|
||||
if r == rdr {
|
||||
break
|
||||
}
|
||||
|
||||
size, err := getReadSeekerSize(rdr)
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
offset += size
|
||||
}
|
||||
return offset, nil
|
||||
}
|
||||
|
||||
func (r *multiReadSeeker) Read(b []byte) (int, error) {
|
||||
if r.pos == nil {
|
||||
// make sure all readers are at 0
|
||||
|
|
Loading…
Reference in a new issue