From c27031c8c110230f3e8235d06acbb2ee7833722f Mon Sep 17 00:00:00 2001 From: "Maxim.Kolmakov" Date: Fri, 15 Mar 2019 16:01:02 +0100 Subject: [PATCH] Remove unused methods stopCPUProfiling couldn't work anyway and other methods in case required can be replaced by ProfilingUtil.startCPUProfiling or ProfilingUtil.stopCPUProfiling --- .../impl/DaemonRespondToChangesTest.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/impl/DaemonRespondToChangesTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/impl/DaemonRespondToChangesTest.java index 8a58591f1d70..d0f99eb093a5 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/impl/DaemonRespondToChangesTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/impl/DaemonRespondToChangesTest.java @@ -1774,38 +1774,6 @@ public class DaemonRespondToChangesTest extends DaemonAnalyzerTestCase { assertTrue(String.valueOf(mean), mean < 10); } - private static void startCPUProfiling() { - try { - Class aClass = Class.forName("com.intellij.util.ProfilingUtil"); - Method method = ObjectUtils.assertNotNull(ReflectionUtil.getDeclaredMethod(aClass, "startCPUProfiling")); - method.invoke(null); - } - catch (Exception e) { - throw new RuntimeException(e); - } - } - private static void stopCPUProfiling() { - try { - Class aClass = Class.forName("com.intellij.util.ProfilingUtil"); - Method method = ObjectUtils.assertNotNull(ReflectionUtil.getDeclaredMethod(aClass, "stopCPUProfiling")); - method.invoke(null); - } - catch (Exception e) { - throw new RuntimeException(e); - } - } - - private static String captureCPUSnapshot() { - try { - Class aClass = Class.forName("com.intellij.util.ProfilingUtil"); - Method method = ObjectUtils.assertNotNull(ReflectionUtil.getDeclaredMethod(aClass, "captureCPUSnapshot")); - return (String)method.invoke(null); - } - catch (Exception e) { - throw new RuntimeException(e); - } - } - public void testPostHighlightingPassRunsOnEveryPsiModification() throws Exception { PsiFile x = createFile("X.java", "public class X { public static void ffffffffffffff(){} }"); PsiFile use = createFile("Use.java", "public class Use { { X.ffffffffffffff(); } }");