Remove unused code.
Use BufferedIterator.