ExpectedHighlightingData - remove expectedDuplicatedHighlightingThrowable temporary wrapper

This commit is contained in:
Anton Lobov
2018-12-17 17:53:08 +01:00
parent 01643844e1
commit f93af018f6
@@ -29,7 +29,6 @@ import com.intellij.rt.execution.junit.FileComparisonFailure;
import com.intellij.testFramework.fixtures.CodeInsightTestFixture;
import com.intellij.util.ArrayUtil;
import com.intellij.util.ThreeState;
import com.intellij.util.ThrowableRunnable;
import com.intellij.util.containers.ContainerUtil;
import gnu.trove.THashMap;
import gnu.trove.THashSet;
@@ -605,21 +604,6 @@ public class ExpectedHighlightingData {
}
}
/** This is temporary wrapper to provide a time to fix failing tests */
public static void expectedDuplicatedHighlightingThrowable(@NotNull ThrowableRunnable check) throws Throwable {
try {
isDuplicatedCheckDisabled = true;
failedDuplicationChecks = 0;
check.run();
}
finally {
isDuplicatedCheckDisabled = false;
}
if (failedDuplicationChecks == 0) {
throw new IllegalStateException(EXPECTED_DUPLICATION_MESSAGE);
}
}
private static int[] composeText(StringBuilder sb,
List<? extends Pair<String, HighlightInfo>> list, int index,
String text, int endPos, int startPos,