1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 09:52:20 +08:00

fuse/ipfs: remove ReadAll

This commit is contained in:
Juan Batiz-Benet
2015-01-29 16:05:00 -08:00
parent fcf7f0e7c1
commit c05b4f06f0

View File

@ -185,11 +185,3 @@ func (s *Node) Read(req *fuse.ReadRequest, resp *fuse.ReadResponse, intr fs.Intr
lm["req_size"] = n
return err // may be non-nil / not succeeded
}
// // ReadAll reads the object data as file data
// func (s *Node) ReadAll(intr fs.Intr) ([]byte, fuse.Error) {
// // this is a terrible function... 'ReadAll'?
// // what if i have a 6TB file? GG RAM.
// return ioutil.ReadAll(r)
// }
// GG RAM alright... -jbenet