Remove pointless seek
This commit is contained in:
parent
24a81a9d88
commit
a2543ef78e
@ -102,7 +102,6 @@ fn seek_to_nth_last_line(file: io::handle, number: int) (void | io::error) = {
|
|||||||
case let length: size => yield length;
|
case let length: size => yield length;
|
||||||
case io::EOF => break;
|
case io::EOF => break;
|
||||||
};
|
};
|
||||||
io::seek(file, current, io::whence::SET)?;
|
|
||||||
|
|
||||||
// look for line breaks in that chunk
|
// look for line breaks in that chunk
|
||||||
let buffer = buffer[..length];
|
let buffer = buffer[..length];
|
||||||
|
Loading…
Reference in New Issue
Block a user