From f93af018f6d22f009e6da32a86a4e544724fbb7d Mon Sep 17 00:00:00 2001 From: Anton Lobov Date: Mon, 17 Dec 2018 17:40:43 +0100 Subject: [PATCH] ExpectedHighlightingData - remove expectedDuplicatedHighlightingThrowable temporary wrapper --- .../testFramework/ExpectedHighlightingData.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/ExpectedHighlightingData.java b/platform/testFramework/src/com/intellij/testFramework/ExpectedHighlightingData.java index 7ea38c44ad73..c1a12e34c5b9 100644 --- a/platform/testFramework/src/com/intellij/testFramework/ExpectedHighlightingData.java +++ b/platform/testFramework/src/com/intellij/testFramework/ExpectedHighlightingData.java @@ -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> list, int index, String text, int endPos, int startPos,