remove useless code from crossreference_end()