summaryrefslogtreecommitdiff
path: root/platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java')
-rw-r--r--platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java b/platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java
index 32a2e38384d9..76377ef6b98e 100644
--- a/platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java
+++ b/platform/lang-impl/src/com/intellij/psi/impl/DocumentCommitThread.java
@@ -554,22 +554,4 @@ public class DocumentCommitThread extends DocumentCommitProcessor implements Run
boolean isEnabled() {
return myEnabled;
}
-
- @TestOnly
- public void waitUntilAllCommitted(long timeout) throws InterruptedException {
- if (!myEnabled) {
- throw new IllegalStateException("DocumentCommitThread is disabled");
- }
- int attempts = 0;
- int delay = 100;
- synchronized (documentsToCommit) {
- while(!documentsToCommit.isEmpty() || currentTask != null) {
- documentsToCommit.wait(delay);
- if (delay * attempts > timeout) {
- throw new RuntimeException("timeout");
- }
- attempts++;
- }
- }
- }
}