Get rid of unnecessary local variable