Remove unused diagnostic.