Browse Source

Remove redundant code

pull/10508/head
Benedikt Stebner 4 years ago
parent
commit
d5cfc06f72
  1. 17
      src/Avalonia.Controls/Presenters/TextPresenter.cs
  2. 2
      src/Avalonia.Controls/TextBoxTextInputMethodClient.cs

17
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;
//}
/// <summary>
/// Creates the <see cref="TextLayout"/> used to render the text.
/// </summary>

2
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;

Loading…
Cancel
Save