From cd913fa496d20c43d4bdedb6ab5aadfd699f5e17 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Mon, 26 Mar 2018 22:59:10 +0300 Subject: [PATCH] git: simplify: use ContainerUtil instead of Collections2 --- plugins/git4idea/src/git4idea/branch/GitBranchUtil.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/git4idea/src/git4idea/branch/GitBranchUtil.java b/plugins/git4idea/src/git4idea/branch/GitBranchUtil.java index b5de09c81127..55178ff4f504 100644 --- a/plugins/git4idea/src/git4idea/branch/GitBranchUtil.java +++ b/plugins/git4idea/src/git4idea/branch/GitBranchUtil.java @@ -15,7 +15,6 @@ */ package git4idea.branch; -import com.google.common.collect.Collections2; import com.intellij.dvcs.DvcsUtil; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; @@ -212,10 +211,7 @@ public class GitBranchUtil { */ @NotNull public static Collection getBranchNamesWithoutRemoteHead(@NotNull Collection remoteBranches) { - return Collections2.filter(convertBranchesToNames(remoteBranches), input -> { - assert input != null; - return !input.equals("HEAD"); - }); + return ContainerUtil.filter(convertBranchesToNames(remoteBranches), input -> !input.equals("HEAD")); } @NotNull