mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unreachable code in CodeFoldingManagerImpl
This commit is contained in:
-4
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user