diff --git a/platform/platform-impl/src/com/intellij/ui/EditorTextField.java b/platform/platform-impl/src/com/intellij/ui/EditorTextField.java index 78258664b3c5..c16f5f188cdc 100644 --- a/platform/platform-impl/src/com/intellij/ui/EditorTextField.java +++ b/platform/platform-impl/src/com/intellij/ui/EditorTextField.java @@ -205,13 +205,6 @@ public class EditorTextField extends NonOpaquePanel implements DocumentListener, public void setDocument(Document document) { if (myDocument != null) { - /* - final UndoManager undoManager = myProject != null - ? UndoManager.getInstance(myProject) - : UndoManager.getGlobalInstance(); - undoManager.clearUndoRedoQueue(myDocument); - */ - uninstallDocumentListener(true); }