remove allowStartingDumbModeInside implementation
[idea/community.git] / platform / core-api / src / com / intellij / openapi / project / DumbService.java
index 180d48ad24a2730cae661daa24ca44be03a5a7b8..364358922427d002487cf15745de46e55d3dbf45 100644 (file)
@@ -302,9 +302,10 @@ public abstract class DumbService {
    * Obsolete, does nothing, just executes the passed runnable.
    * @see #completeJustSubmittedTasks()
    */
+  @SuppressWarnings({"deprecation", "unused"})
   @Deprecated
   public static void allowStartingDumbModeInside(@NotNull DumbModePermission permission, @NotNull Runnable runnable) {
-    ServiceManager.getService(DumbPermissionService.class).allowStartingDumbModeInside(permission, runnable);
+    runnable.run();
   }
 
   /**