dead code

This commit is contained in:
Alexey Kudravtsev
2013-08-14 12:17:19 +04:00
parent 517603e8df
commit 94bfa2b11a
2 changed files with 2 additions and 24 deletions
@@ -17,8 +17,6 @@
package com.intellij.ide.util.treeView;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
@@ -26,7 +24,6 @@ import com.intellij.openapi.util.ActionCallback;
import com.intellij.openapi.util.Disposer;
import com.intellij.ui.treeStructure.treetable.TreeTableTree;
import com.intellij.util.Alarm;
import com.intellij.util.ui.UIUtil;
import com.intellij.util.ui.update.Activatable;
import com.intellij.util.ui.update.MergingUpdateQueue;
import com.intellij.util.ui.update.UiNotifyConnector;
@@ -120,7 +117,7 @@ public class AbstractTreeUpdater implements Disposable, Activatable {
if (myReleaseRequested) return;
assert !toAdd.isExpired();
final AbstractTreeUi ui = myTreeBuilder.getUi();
if (ui.isUpdatingChildrenNow(toAdd.getNode())) {
@@ -301,20 +298,6 @@ public class AbstractTreeUpdater implements Disposable, Activatable {
return myTreeBuilder.getUi() == null;
}
protected void invokeLater(Runnable runnable) {
if (myTreeBuilder.getUi().isPassthroughMode()) {
runnable.run();
} else {
final Application app = ApplicationManager.getApplication();
if (app != null) {
app.invokeLater(runnable);
}
else {
UIUtil.invokeAndWaitIfNeeded(runnable);
}
}
}
protected ActionCallback beforeUpdate(TreeUpdatePass pass) {
return new ActionCallback.Done();
}
@@ -281,11 +281,6 @@ abstract class BaseTreeTestCase<StructureElement> extends FlyIdeaTestCase {
static AbstractTreeUpdater _createUpdater(AbstractTreeBuilder builder) {
final AbstractTreeUpdater updater = new AbstractTreeUpdater(builder) {
@Override
protected void invokeLater(Runnable runnable) {
runnable.run();
}
@Override
protected boolean isEdt() {
return SwingUtilities.isEventDispatchThread();
@@ -422,7 +417,7 @@ abstract class BaseTreeTestCase<StructureElement> extends FlyIdeaTestCase {
void select(final Object element, final boolean addToSelection) throws Exception {
select(new Object[] {element}, addToSelection);
}
void select(final Object[] elements, final boolean addToSelection) throws Exception {
select(elements, addToSelection, false);
}