remove unused window variable assignments.