diff --git a/src/Perspex.Controls/Presenters/TextPresenter.cs b/src/Perspex.Controls/Presenters/TextPresenter.cs index 284684ab6e..4715770c96 100644 --- a/src/Perspex.Controls/Presenters/TextPresenter.cs +++ b/src/Perspex.Controls/Presenters/TextPresenter.cs @@ -2,7 +2,6 @@ // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; -using System.Linq; using System.Reactive.Linq; using Perspex.Media; using Perspex.Styling; @@ -24,7 +23,6 @@ namespace Perspex.Controls.Presenters private readonly DispatcherTimer _caretTimer; private bool _caretBlink; - private IObservable _canScrollHorizontally; private Brush _highlightBrush; static TextPresenter() @@ -38,9 +36,6 @@ namespace Perspex.Controls.Presenters _caretTimer.Interval = TimeSpan.FromMilliseconds(500); _caretTimer.Tick += CaretTimerTick; - _canScrollHorizontally = this.GetObservable(TextWrappingProperty) - .Select(x => x == TextWrapping.NoWrap); - Observable.Merge( this.GetObservable(SelectionStartProperty), this.GetObservable(SelectionEndProperty))