chore(mtext): drop unused preview-edit message variants

MTextType/MTextBackspace/MTextDelete were never emitted — preview typing,
backspace and delete route through the existing CommandAppendChar /
CommandBackspace / DeleteSelected handlers, which call the methods directly.
Removes the dead variants and their arms (fixes a never-constructed warning).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-05-31 10:20:39 +03:00
1 parent 7190df8274
commit 3cf21c1cc2
2 files changed
-18

No files matched your search

-6
View File
@@ -744,12 +744,6 @@ pub enum Message {
MTextSelStart(usize),
/// Extend the preview selection to the given visible-character offset.
MTextSelTo(usize),
/// Type text at the preview caret (replacing any selection).
MTextType(String),
/// Backspace at the preview caret.
MTextBackspace,
/// Delete-forward at the preview caret.
MTextDelete,
/// Move the preview caret by N visible characters.
MTextCaretMove(i32),
/// Commit the editor: create or update the MText entity.