Removes unuseful lines of code.