inspection tool window: dead code removed

This commit is contained in:
Dmitry Batkovich
2016-04-26 12:30:02 +03:00
parent cd5de72a9e
commit e096ee11a3
@@ -173,26 +173,11 @@ public class InspectionResultsViewComparator implements Comparator {
return entity2 != null ? 1 : 0;
}
private static int compareLineNumbers(final Object userObject, final OfflineProblemDescriptor descriptor) {
if (userObject instanceof RefElement) {
final RefElement refElement = (RefElement)userObject;
final PsiElement psiElement = refElement.getElement();
if (psiElement != null) {
Document document = PsiDocumentManager.getInstance(psiElement.getProject()).getDocument(psiElement.getContainingFile());
if (document != null) {
return descriptor.getLine() - document.getLineNumber(psiElement.getTextOffset()) -1;
}
}
}
return -1;
}
private static class InspectionResultsViewComparatorHolder {
private static final InspectionResultsViewComparator ourInstance = new InspectionResultsViewComparator();
}
public static InspectionResultsViewComparator getInstance() {
return InspectionResultsViewComparatorHolder.ourInstance;
}
}