remove unreachable code in CodeFoldingManagerImpl

This commit is contained in:
Dmitry Batrak
2017-07-27 20:12:09 +03:00
parent 00054da9c6
commit 35c3ab3e3d
@@ -172,10 +172,6 @@ public class CodeFoldingManagerImpl extends CodeFoldingManager implements Projec
PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(document);
if (file == null || !file.getViewProvider().isPhysical() || !file.isValid()) return;
Editor[] otherEditors = EditorFactory.getInstance().getEditors(document, myProject);
if (otherEditors.length == 0 && !editor.isDisposed()) {
getDocumentFoldingInfo(document).loadFromEditor(editor);
}
EditorFoldingInfo.get(editor).dispose();
}