mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: cleanup - remove unused methods
This commit is contained in:
committed by
Aleksey Pivovarov
parent
33ea7473f5
commit
8930a32cba
@@ -43,6 +43,7 @@ public abstract class ChangeListManager implements ChangeListModification {
|
||||
}
|
||||
|
||||
public abstract void scheduleUpdate();
|
||||
@Deprecated
|
||||
public abstract void scheduleUpdate(boolean updateUnversionedFiles);
|
||||
public abstract void invokeAfterUpdate(@NotNull Runnable afterUpdate,
|
||||
@NotNull InvokeAfterUpdateMode mode,
|
||||
@@ -58,7 +59,9 @@ public abstract class ChangeListManager implements ChangeListModification {
|
||||
|
||||
public abstract int getChangeListsNumber();
|
||||
@NotNull
|
||||
public abstract List<LocalChangeList> getChangeListsCopy();
|
||||
public List<LocalChangeList> getChangeListsCopy() {
|
||||
return getChangeLists();
|
||||
}
|
||||
@NotNull
|
||||
public abstract List<LocalChangeList> getChangeLists();
|
||||
|
||||
@@ -78,8 +81,6 @@ public abstract class ChangeListManager implements ChangeListModification {
|
||||
public abstract LocalChangeList findChangeList(String name);
|
||||
@Nullable
|
||||
public abstract LocalChangeList getChangeList(String id);
|
||||
// public abstract LocalChangeList addChangeList(@NotNull String name, final String comment);
|
||||
// public abstract void setDefaultChangeList(@NotNull LocalChangeList list);
|
||||
|
||||
/**
|
||||
* Returns currently active changelist
|
||||
@@ -121,10 +122,6 @@ public abstract class ChangeListManager implements ChangeListModification {
|
||||
@Nullable
|
||||
public abstract AbstractVcs getVcsFor(@NotNull Change change);
|
||||
|
||||
// public abstract void removeChangeList(final LocalChangeList list);
|
||||
|
||||
// public abstract void moveChangesTo(final LocalChangeList list, final Change[] changes);
|
||||
|
||||
public abstract void addChangeListListener(@NotNull ChangeListListener listener);
|
||||
|
||||
public abstract void removeChangeListListener(@NotNull ChangeListListener listener);
|
||||
@@ -133,12 +130,6 @@ public abstract class ChangeListManager implements ChangeListModification {
|
||||
|
||||
public abstract void commitChanges(@NotNull LocalChangeList changeList, @NotNull List<Change> changes);
|
||||
|
||||
public abstract void commitChangesSynchronously(@NotNull LocalChangeList changeList, @NotNull List<Change> changes);
|
||||
/**
|
||||
* @return if commit successful
|
||||
*/
|
||||
public abstract boolean commitChangesSynchronouslyWithResult(@NotNull LocalChangeList changeList, @NotNull List<Change> changes);
|
||||
|
||||
@Deprecated // used in TeamCity
|
||||
public abstract void reopenFiles(@NotNull List<FilePath> paths);
|
||||
|
||||
|
||||
@@ -37,17 +37,13 @@ public abstract class ChangeListManagerEx extends ChangeListManager {
|
||||
|
||||
/**
|
||||
* Blocks modal dialogs that we don't want to popup during some process, for example, above the commit dialog.
|
||||
* They will be shown when notifications are unblocked.
|
||||
*/
|
||||
@CalledInAwt
|
||||
public abstract void blockModalNotifications();
|
||||
|
||||
/**
|
||||
* Unblocks modal dialogs showing and shows the ones which were queued.
|
||||
*/
|
||||
@CalledInAwt
|
||||
public abstract void unblockModalNotifications();
|
||||
|
||||
|
||||
/**
|
||||
* Temporarily disable CLM update
|
||||
* For example, to preserve FilePath->ChangeList mapping during "stash-do_smth-unstash" routine.
|
||||
|
||||
@@ -746,10 +746,6 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated this method made equivalent to {@link #getChangeListsCopy()} so to don't be confused by method name,
|
||||
* better use {@link #getChangeListsCopy()}
|
||||
*/
|
||||
@Override
|
||||
@NotNull
|
||||
public List<LocalChangeList> getChangeLists() {
|
||||
@@ -1261,12 +1257,7 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
|
||||
false, synchronously, FunctionUtil.nullConstant(), null, false, null).doCommit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void commitChangesSynchronously(@NotNull LocalChangeList changeList, @NotNull List<Change> changes) {
|
||||
doCommit(changeList, changes, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@TestOnly
|
||||
public boolean commitChangesSynchronouslyWithResult(@NotNull LocalChangeList changeList, @NotNull List<Change> changes) {
|
||||
return doCommit(changeList, changes, true);
|
||||
}
|
||||
|
||||
@@ -252,16 +252,6 @@ public class MockChangeListManager extends ChangeListManagerEx {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void commitChangesSynchronously(@NotNull LocalChangeList changeList, @NotNull List<Change> changes) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean commitChangesSynchronouslyWithResult(@NotNull LocalChangeList changeList, @NotNull List<Change> changes) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reopenFiles(@NotNull List<FilePath> paths) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -123,7 +123,7 @@ public class IgnoredFilesTest extends Svn17TestCase {
|
||||
|
||||
private void dirty() {
|
||||
VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
|
||||
myChangeListManager.scheduleUpdate(true);
|
||||
myChangeListManager.scheduleUpdate();
|
||||
myChangeListManager.ensureUpToDate(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class IgnoredFilesTest extends Svn16TestCase {
|
||||
|
||||
private void dirty() {
|
||||
VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
|
||||
myChangeListManager.scheduleUpdate(true);
|
||||
myChangeListManager.scheduleUpdate();
|
||||
myChangeListManager.ensureUpToDate(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user