PY-36374 Remove redundant name parameter from ImportChooser EP

GitOrigin-RevId: 5c6426a1f1f423e3bdb0c4131bc36ae5448755cf
This commit is contained in:
Mikhail Golubev
2021-01-08 16:40:55 +00:00
committed by intellij-monorepo-bot
parent d4324ef380
commit 8910b97535
3 changed files with 3 additions and 7 deletions
@@ -10,7 +10,5 @@ public interface ImportChooser {
return ApplicationManager.getApplication().getService(ImportChooser.class);
}
Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> mySources,
String myName,
boolean myUseQualifiedImport);
Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> mySources, boolean myUseQualifiedImport);
}
@@ -91,7 +91,7 @@ public class ImportFromExistingAction implements QuestionAction {
private void selectSourceAndDo() {
ImportChooser.getInstance()
.selectImport(mySources, myName, myUseQualifiedImport)
.selectImport(mySources, myUseQualifiedImport)
.onSuccess(candidate -> {
PsiDocumentManager.getInstance(myTarget.getProject()).commitAllDocuments();
doWriteAction(candidate);
@@ -21,9 +21,7 @@ import java.util.List;
public class PyImportChooser implements ImportChooser {
@Override
public Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> sources,
String name,
boolean useQualifiedImport) {
public Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> sources, boolean useQualifiedImport) {
AsyncPromise<ImportCandidateHolder> result = new AsyncPromise<>();