From a4cf6abb296d8b678ebb82e9daa92b7c58032bcb Mon Sep 17 00:00:00 2001 From: Alexander Trushev Date: Tue, 23 Sep 2025 12:34:46 +0200 Subject: [PATCH] [rd-editor] IJPL-201535 Remove fallback to backend flag because it is always `true` GitOrigin-RevId: fa0884be69955de5bdd0141b9d2644aba73de4b9 --- .../com/intellij/ide/impl/UndoRemoteBehaviorService.java | 7 ------- platform/util/resources/misc/registry.properties | 3 --- 2 files changed, 10 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/impl/UndoRemoteBehaviorService.java b/platform/platform-impl/src/com/intellij/ide/impl/UndoRemoteBehaviorService.java index 999a995301df..1820cb18752a 100644 --- a/platform/platform-impl/src/com/intellij/ide/impl/UndoRemoteBehaviorService.java +++ b/platform/platform-impl/src/com/intellij/ide/impl/UndoRemoteBehaviorService.java @@ -24,13 +24,6 @@ public class UndoRemoteBehaviorService { return service.isSpeculativeUndoAvailable(); } - public static boolean isBackendFallbackEnabled() { - if (!isSpeculativeUndoEnabled()) { - throw new IllegalStateException("speculative undo is disabled"); - } - return Registry.is("ide.undo.backend.fallback.if.broken", true); - } - public static boolean debugExperimentalFrontendUndo() { if (!isSpeculativeUndoEnabled()) { throw new IllegalStateException("speculative undo is disabled"); diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index 90d6bca5a6c2..5282237bee82 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -2248,9 +2248,6 @@ ide.undo.transparent.caret.movement.description=When enabled caret movement will ide.undo.frontend.if.possible=true ide.undo.frontend.if.possible.restartRequired=true ide.undo.frontend.if.possible.description=Feature flag for IJPL-185748 (WIP!). If enabled, undo/redo is performed on the frontend side if possible. -ide.undo.backend.fallback.if.broken=true -ide.undo.backend.fallback.if.broken.restartRequired=true -ide.undo.backend.fallback.if.broken.description=Disable frontend undo/redo if stacks corruption detected IJPL-192753 ide.undo.frontend.if.possible.debug=false ide.undo.frontend.if.possible.debug.description=If enabled, logs debug info during undo/redo stacks evolving