mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unused methods
This commit is contained in:
@@ -457,23 +457,6 @@ public class VcsDirtyScopeManagerImpl extends VcsDirtyScopeManager implements Pr
|
||||
return result;
|
||||
}
|
||||
|
||||
private String toStringScopes(final VcsInvalidated vcsInvalidated) {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
sb.append("is everything dirty: ").append(vcsInvalidated.isEverythingDirty()).append(";\n");
|
||||
for (VcsDirtyScope scope : vcsInvalidated.getScopes()) {
|
||||
sb.append("|\nFiles: ");
|
||||
for (FilePath path : scope.getDirtyFiles()) {
|
||||
sb.append(path).append('\n');
|
||||
}
|
||||
sb.append("\nDirs: ");
|
||||
for (FilePath filePath : scope.getRecursivelyDirtyDirectories()) {
|
||||
sb.append(filePath).append('\n');
|
||||
}
|
||||
}
|
||||
sb.append("-------------");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
private static class LifeDrop {
|
||||
private final boolean myDone;
|
||||
private final boolean mySuspened;
|
||||
@@ -532,18 +515,6 @@ public class VcsDirtyScopeManagerImpl extends VcsDirtyScopeManager implements Pr
|
||||
}
|
||||
}
|
||||
|
||||
public LifeDrop doIfAliveAndNotSuspended(final Runnable runnable) {
|
||||
synchronized (myLock) {
|
||||
synchronized (myLock) {
|
||||
if (LifeStages.ALIVE.equals(myStage) && ! mySuspended) {
|
||||
runnable.run();
|
||||
return new LifeDrop(true, mySuspended);
|
||||
}
|
||||
return new LifeDrop(false, mySuspended);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// allow work under inner lock: inner class, not wide scope
|
||||
public LifeDrop doIfAlive(final Runnable runnable) {
|
||||
synchronized (myLock) {
|
||||
|
||||
Reference in New Issue
Block a user