Fixed unneeded code

Variable was not needed to do the iterator for the indexing of all the lines.