[shelf] remove unused parameter

This commit is contained in:
Kirill Likhodedov
2015-07-24 16:17:07 +03:00
parent 7d30cb1eed
commit 0a5f9cfdf4
5 changed files with 7 additions and 7 deletions
@@ -139,7 +139,7 @@ public class PatchApplier<BinaryType extends FilePatch> {
public void execute(boolean showSuccessNotification) {
final Continuation continuation = ApplicationManager.getApplication().isDispatchThread() ?
Continuation.createFragmented(myProject, true) :
Continuation.createForCurrentProgress(myProject, true, "Apply patch");
Continuation.createForCurrentProgress(myProject, true);
final GatheringContinuationContext initContext =
new GatheringContinuationContext();
scheduleSelf(showSuccessNotification, initContext, false);
@@ -361,7 +361,7 @@ public class ShelveChangesManager extends AbstractProjectComponent implements JD
@Nullable final List<ShelvedBinaryFile> binaryFiles,
@Nullable final LocalChangeList targetChangeList,
boolean showSuccessNotification) {
final Continuation continuation = Continuation.createForCurrentProgress(myProject, true, "Unshelve changes");
final Continuation continuation = Continuation.createForCurrentProgress(myProject, true);
final GatheringContinuationContext initContext = new GatheringContinuationContext();
scheduleUnshelveChangeList(changeList, changes, binaryFiles, targetChangeList, showSuccessNotification, initContext, false,
false, null, null);
@@ -27,8 +27,8 @@ public class Continuation {
myGeneralRunner = generalRunner;
}
public static Continuation createForCurrentProgress(final Project project, final boolean cancellable, final String commonTitle) {
return new Continuation(new SameProgressRunner(project, cancellable, commonTitle));
public static Continuation createForCurrentProgress(final Project project, final boolean cancellable) {
return new Continuation(new SameProgressRunner(project, cancellable));
}
public static Continuation createFragmented(final Project project, final boolean cancellable) {
@@ -59,7 +59,7 @@ public class Continuation {
}
public void resumeOnNewIndicator(final Project project, final boolean cancellable, final String commonTitle) {
final SameProgressRunner runner = new SameProgressRunner(project, cancellable, commonTitle);
final SameProgressRunner runner = new SameProgressRunner(project, cancellable);
runner.next(myGeneralRunner.myQueue);
myGeneralRunner = runner;
resume();
@@ -36,7 +36,7 @@ public class SameProgressRunner extends GeneralRunner {
private final Semaphore mySemaphore;
private final static Logger LOG = Logger.getInstance("#com.intellij.util.continuation.SameProgressRunner");
public SameProgressRunner(Project project, boolean cancellable, final String commonName) {
public SameProgressRunner(Project project, boolean cancellable) {
super(project, cancellable);
final Application application = ApplicationManager.getApplication();
@@ -118,7 +118,7 @@ public class GitComplexProcess {
}
private void run() {
Continuation continuation = Continuation.createForCurrentProgress(myProject, true, myTitle);
Continuation continuation = Continuation.createForCurrentProgress(myProject, true);
String taskTitle = "Git: " + myTitle;
TaskDescriptor operation = new TaskDescriptor(taskTitle, Where.POOLED) {
@Override public void run(final ContinuationContext context) {