Remove some variables which were set but not used.