hg: unused code.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Thu, 5 May 2011 11:51:32 +0000 (15:51 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Thu, 5 May 2011 11:54:21 +0000 (15:54 +0400)
plugins/hg4idea/src/org/zmlx/hg4idea/action/HgAction.java

index b2f9c62cfe089651c430d85686e5d1fbf2df5dbb..7081a6f5b4e93ab9ef4bdfd46c255de1bbe14730 100644 (file)
@@ -17,13 +17,6 @@ package org.zmlx.hg4idea.action;
 
 import com.intellij.openapi.actionSystem.*;
 import com.intellij.openapi.project.Project;
-import com.intellij.openapi.vcs.ProjectLevelVcsManager;
-import com.intellij.openapi.vcs.VcsRoot;
-import com.intellij.openapi.vfs.VirtualFile;
-import org.zmlx.hg4idea.HgVcs;
-
-import java.util.LinkedList;
-import java.util.List;
 
 /**
  * @author Kirill Likhodedov
@@ -53,15 +46,4 @@ public abstract class HgAction extends AnAction {
 
   public abstract void execute(Project project);
 
-  private static List<VirtualFile> findRepos(Project project) {
-    List<VirtualFile> repos = new LinkedList<VirtualFile>();
-    VcsRoot[] roots = ProjectLevelVcsManager.getInstance(project).getAllVcsRoots();
-    for (VcsRoot root : roots) {
-      if (HgVcs.VCS_NAME.equals(root.vcs.getName())) {
-        repos.add(root.path);
-      }
-    }
-    return repos;
-  }
-
 }