From 6f17ebb85755d7a6de7adf74da9bd8c8029353f0 Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Mon, 15 May 2017 13:40:10 +0300 Subject: [PATCH] [shelf]: remove useless FilePath refresh --- .../com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java index 8f07765c07da..bae9a8a93993 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChange.java @@ -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();