audio/internal/convert: remove Resampling.Close

This function is not used anywhere.
This commit is contained in:
Hajime Hoshi 2022-08-21 23:48:28 +09:00
parent d9704f2ba9
commit 344d66c365

View File

@ -243,10 +243,3 @@ func (r *Resampling) Seek(offset int64, whence int) (int64, error) {
}
return r.pos, nil
}
func (r *Resampling) Close() error {
if closer, ok := r.source.(io.Closer); ok {
return closer.Close()
}
panic("audio/internal/convert: r.source must be io.Closer")
}