Remove unused variable assignments