Removed close function from squashfs.File

This seems to cause issues in ver specific circumstances and ultimately, isn't needed.
This commit is contained in:
Caleb Gardner
2021-01-06 12:56:09 -06:00
parent 97b12090c6
commit 35d22b4bd0
5 changed files with 9 additions and 39 deletions
-9
View File
@@ -57,15 +57,6 @@ func (r *Reader) newFileReader(in *inode.Inode) (*fileReader, error) {
return &rdr, nil
}
//Close runs Close on the data reader and frees the fragmentdata
func (f *fileReader) Close() error {
if f.data != nil {
f.data.Close()
}
f.fragmentData = nil
return nil
}
func (f *fileReader) Read(p []byte) (int, error) {
if f.fragOnly {
n, err := bytes.NewBuffer(f.fragmentData[f.read:]).Read(p)