Removes uneccesary local variable assignment