mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: remove unused method - AbstractVcsHelper.chooseCommittedChangeList
This commit is contained in:
@@ -23,7 +23,6 @@ import com.intellij.openapi.vcs.annotate.FileAnnotation;
|
||||
import com.intellij.openapi.vcs.changes.Change;
|
||||
import com.intellij.openapi.vcs.changes.CommitResultHandler;
|
||||
import com.intellij.openapi.vcs.changes.LocalChangeList;
|
||||
import com.intellij.openapi.vcs.history.VcsFileRevision;
|
||||
import com.intellij.openapi.vcs.history.VcsHistoryProvider;
|
||||
import com.intellij.openapi.vcs.history.VcsRevisionNumber;
|
||||
import com.intellij.openapi.vcs.merge.MergeDialogCustomizer;
|
||||
@@ -36,7 +35,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.awt.*;
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
|
||||
@@ -91,10 +89,6 @@ public abstract class AbstractVcsHelper {
|
||||
|
||||
public abstract void showWhatDiffersBrowser(@Nullable Component parent, Collection<Change> changes, @Nls String title);
|
||||
|
||||
@Nullable
|
||||
public abstract <T extends CommittedChangeList, U extends ChangeBrowserSettings> T chooseCommittedChangeList(@NotNull CommittedChangesProvider<T, U> provider,
|
||||
RepositoryLocation location);
|
||||
|
||||
public abstract void openCommittedChangesTab(AbstractVcs vcs,
|
||||
VirtualFile root,
|
||||
ChangeBrowserSettings settings,
|
||||
|
||||
@@ -544,27 +544,6 @@ public class AbstractVcsHelperImpl extends AbstractVcsHelper {
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public <T extends CommittedChangeList, U extends ChangeBrowserSettings> T chooseCommittedChangeList(@NotNull CommittedChangesProvider<T, U> provider,
|
||||
RepositoryLocation location) {
|
||||
final List<T> changes;
|
||||
try {
|
||||
changes = provider.getCommittedChanges(provider.createDefaultSettings(), location, 0);
|
||||
}
|
||||
catch (VcsException e) {
|
||||
return null;
|
||||
}
|
||||
final ChangesBrowserDialog dlg = new ChangesBrowserDialog(myProject, new CommittedChangesTableModel((List<CommittedChangeList>)changes,
|
||||
provider.getColumns(), false),
|
||||
ChangesBrowserDialog.Mode.Choose, null);
|
||||
if (dlg.showAndGet()) {
|
||||
return (T)dlg.getSelectedChangeList();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public List<VirtualFile> showMergeDialog(@NotNull List<VirtualFile> files,
|
||||
|
||||
@@ -96,10 +96,6 @@ class MockVcsHelper(project: Project) : AbstractVcsHelper(project) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun <T : CommittedChangeList, U : ChangeBrowserSettings> chooseCommittedChangeList(provider: CommittedChangesProvider<T, U>, location: RepositoryLocation): T? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun showRollbackChangesDialog(changes: List<Change>) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
@@ -100,12 +100,6 @@ public class HgMockVcsHelper extends AbstractVcsHelper {
|
||||
public void showWhatDiffersBrowser(@Nullable Component parent, Collection<Change> changes, @Nls String title) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends CommittedChangeList, U extends ChangeBrowserSettings> T chooseCommittedChangeList(@NotNull CommittedChangesProvider<T, U> provider,
|
||||
RepositoryLocation location) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openCommittedChangesTab(AbstractVcs vcs, VirtualFile root, ChangeBrowserSettings settings, int maxCount, String title) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user