mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup: do not call validateEntries() twice
This commit is contained in:
-2
@@ -264,7 +264,6 @@ public final class EditorHistoryManager implements PersistentStateComponent<Elem
|
||||
}
|
||||
|
||||
public FileEditorState getState(@NotNull VirtualFile file, final FileEditorProvider provider) {
|
||||
validateEntries();
|
||||
final HistoryEntry entry = getEntry(file);
|
||||
return entry != null ? entry.getState(provider) : null;
|
||||
}
|
||||
@@ -273,7 +272,6 @@ public final class EditorHistoryManager implements PersistentStateComponent<Elem
|
||||
* @return may be null
|
||||
*/
|
||||
public FileEditorProvider getSelectedProvider(final VirtualFile file) {
|
||||
validateEntries();
|
||||
final HistoryEntry entry = getEntry(file);
|
||||
return entry != null ? entry.mySelectedProvider : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user