mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] cleanup
This commit is contained in:
@@ -18,7 +18,6 @@ package git4idea.actions;
|
||||
import com.intellij.openapi.actionSystem.ActionPlaces;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.fileEditor.FileDocumentManager;
|
||||
import com.intellij.openapi.project.DumbAwareAction;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -54,11 +53,7 @@ public abstract class GitRepositoryAction extends DumbAwareAction {
|
||||
public void actionPerformed(@NotNull final AnActionEvent e) {
|
||||
myDelayedTasks.clear();
|
||||
FileDocumentManager.getInstance().saveAllDocuments();
|
||||
DataContext dataContext = e.getDataContext();
|
||||
final Project project = CommonDataKeys.PROJECT.getData(dataContext);
|
||||
if (project == null) {
|
||||
return;
|
||||
}
|
||||
final Project project = e.getRequiredData(CommonDataKeys.PROJECT);
|
||||
GitVcs vcs = GitVcs.getInstance(project);
|
||||
final List<VirtualFile> roots = getGitRoots(project, vcs);
|
||||
if (roots == null) return;
|
||||
@@ -187,9 +182,6 @@ public abstract class GitRepositoryAction extends DumbAwareAction {
|
||||
final Set<VirtualFile> affectedRoots,
|
||||
List<VcsException> exceptions) throws VcsException;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void update(final AnActionEvent e) {
|
||||
super.update(e);
|
||||
|
||||
Reference in New Issue
Block a user