Browse Source

Removed unused code.

pull/484/head
Steven Kirk 11 years ago
parent
commit
8be3a17600
  1. 5
      src/Perspex.Controls/Presenters/TextPresenter.cs

5
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<bool> _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))

Loading…
Cancel
Save