mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[shelf]: remove useless FilePath refresh
This commit is contained in:
@@ -122,7 +122,6 @@ public class ShelvedChange {
|
||||
|
||||
File file = getAbsolutePath(baseDir, myBeforePath);
|
||||
FilePath beforePath = VcsUtil.getFilePath(file, false);
|
||||
beforePath.refresh();
|
||||
ContentRevision beforeRevision = null;
|
||||
if (myFileStatus != FileStatus.ADDED) {
|
||||
beforeRevision = new CurrentContentRevision(beforePath) {
|
||||
@@ -233,7 +232,6 @@ public class ShelvedChange {
|
||||
}
|
||||
|
||||
private String getBaseContent() {
|
||||
myBeforeFilePath.refresh();
|
||||
return ReadAction.compute(() -> {
|
||||
final Document doc = FileDocumentManager.getInstance().getDocument(myBeforeFilePath.getVirtualFile());
|
||||
return doc.getText();
|
||||
|
||||
Reference in New Issue
Block a user