Removes unused variable assignments