diff --git a/src/Avalonia.Controls/Presenters/TextPresenter.cs b/src/Avalonia.Controls/Presenters/TextPresenter.cs index 2e6f1a0f2d..089a2c1168 100644 --- a/src/Avalonia.Controls/Presenters/TextPresenter.cs +++ b/src/Avalonia.Controls/Presenters/TextPresenter.cs @@ -527,23 +527,6 @@ namespace Avalonia.Controls.Presenters } } - //private string? GetText() - //{ - // if (!string.IsNullOrEmpty(_preeditText)) - // { - // if (string.IsNullOrEmpty(_text) || _caretIndex > _text.Length) - // { - // return _preeditText; - // } - - // var text = _text.Substring(0, _caretIndex) + _preeditText + _text.Substring(_caretIndex); - - // return text; - // } - - // return _text; - //} - /// /// Creates the used to render the text. /// diff --git a/src/Avalonia.Controls/TextBoxTextInputMethodClient.cs b/src/Avalonia.Controls/TextBoxTextInputMethodClient.cs index 6f8f3f3cab..deace4084c 100644 --- a/src/Avalonia.Controls/TextBoxTextInputMethodClient.cs +++ b/src/Avalonia.Controls/TextBoxTextInputMethodClient.cs @@ -177,8 +177,6 @@ namespace Avalonia.Controls var text = GetText(preeditText); - Debug.WriteLine(text); - _presenter._text = text; _presenter.PreeditText = preeditText;