remove unused field

This commit is contained in:
Kirill Likhodedov
2016-05-11 21:20:50 +03:00
parent 2929eed63c
commit fae364954c
3 changed files with 3 additions and 6 deletions
@@ -69,7 +69,7 @@ class CallbackData {
}
else {
if (mode.isSynchronous()) {
final Waiter waiter = new Waiter(project, afterUpdate, state,
final Waiter waiter = new Waiter(project, afterUpdate,
VcsBundle.message("change.list.manager.wait.lists.synchronization", title), mode.isCancellable());
return new CallbackData(
new Runnable() {
@@ -32,7 +32,7 @@ class FictiveBackgroundable extends Task.Backgroundable {
final ModalityState state) {
super(project, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable);
myState = state;
myWaiter = new Waiter(project, runnable, state, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable);
myWaiter = new Waiter(project, runnable, VcsBundle.message("change.list.manager.wait.lists.synchronization", title), cancellable);
}
public void run(@NotNull final ProgressIndicator indicator) {
@@ -15,7 +15,6 @@
*/
package com.intellij.openapi.vcs.changes;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.Task;
@@ -25,16 +24,14 @@ import org.jetbrains.annotations.NotNull;
public class Waiter extends Task.Modal {
private final Logger LOG = Logger.getInstance("#com.intellij.openapi.vcs.changes.Waiter");
private final ModalityState myState;
private final Runnable myRunnable;
private boolean myStarted;
private boolean myDone;
private final Object myLock = new Object();
public Waiter(final Project project, final Runnable runnable, final ModalityState state, final String title, final boolean cancellable) {
public Waiter(final Project project, final Runnable runnable, final String title, final boolean cancellable) {
super(project, title, cancellable);
myRunnable = runnable;
myState = state;
myDone = false;
myStarted = false;
setCancelText("Skip");