From 230703e1b7878920929d1efbaa8bc17ccf2c2d23 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Wed, 31 Jul 2019 11:38:29 +0300 Subject: [PATCH] git: cleanup: remove unused parameter GitOrigin-RevId: ae6141621042090d5ecfcb6ee1c494c9d610ce49 --- plugins/git4idea/src/git4idea/changes/GitChangeUtils.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/git4idea/src/git4idea/changes/GitChangeUtils.java b/plugins/git4idea/src/git4idea/changes/GitChangeUtils.java index 061e3423a5ef..48492a2a9a96 100644 --- a/plugins/git4idea/src/git4idea/changes/GitChangeUtils.java +++ b/plugins/git4idea/src/git4idea/changes/GitChangeUtils.java @@ -84,7 +84,7 @@ public class GitChangeUtils { @Nullable GitRevisionNumber parentRevision, StringScanner s, Collection changes) throws VcsException { - parseChanges(project, vcsRoot, s, (status, beforePath, afterPath) -> { + parseChanges(vcsRoot, s, (status, beforePath, afterPath) -> { assert beforePath != null || afterPath != null; ContentRevision before = beforePath != null ? GitContentRevision.createRevision(beforePath, parentRevision, project) : null; ContentRevision after = afterPath != null ? GitContentRevision.createRevision(afterPath, thisRevision, project) : null; @@ -92,8 +92,7 @@ public class GitChangeUtils { }); } - private static void parseChanges(@NotNull Project project, - @NotNull VirtualFile vcsRoot, + private static void parseChanges(@NotNull VirtualFile vcsRoot, @NotNull StringScanner s, @NotNull FileStatusLineConsumer consumer) throws VcsException { while (s.hasMoreData()) { @@ -394,7 +393,7 @@ public class GitChangeUtils { StringScanner sc = new StringScanner(output); Collection changes = new ArrayList<>(); - parseChanges(project, root, sc, (status, beforePath, afterPath) -> { + parseChanges(root, sc, (status, beforePath, afterPath) -> { changes.add(new GitDiffChange(status, beforePath, afterPath)); }); if (sc.hasMoreData()) {