Created attachment 683965 [details] Deadcode removal The offset parameter is not used in nsDiskCacheStream, neither in the InputStream nor in the OutputStream. Offset passed to GetOuputStream is always zero. Removing offset and the corresponding code will reduce code and enable to easier make the diskcachs code more robust.
Created attachment 683966 [details] [diff] [review] Deadcode removal
Further testing proved that offset is sometimes not 0. Particularily for streaming videos, offset will not be zero. The first chunk is cached, and when the rest of the video is loaded the rest of the data is appended.