Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 6c88dae

Browse files
author
Yuncong Zhang
committed
Cleanup code.
1 parent 044273e commit 6c88dae

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Runtime/rendering/editable.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using Unity.UIWidgets.foundation;
43
using Unity.UIWidgets.gestures;
54
using Unity.UIWidgets.painting;
@@ -664,14 +663,12 @@ public float textScaleFactor {
664663
}
665664

666665
public TextSelection selection {
667-
get {
668-
return this._selection;
669-
}
666+
get { return this._selection; }
670667
set {
671-
if (this._selection == value) {
672-
return;
668+
if (this._selection == value) {
669+
return;
673670
}
674-
671+
675672
this._selection = value;
676673
this._selectionRects = null;
677674
this.markNeedsPaint();
@@ -906,7 +903,7 @@ public TextPosition getParagraphForward(TextPosition position, TextAffinity? aff
906903

907904
public TextPosition getParagraphBackward(TextPosition position, TextAffinity? affinity = null) {
908905
var lineCount = this._textPainter.getLineCount();
909-
906+
910907
Paragraph.LineRange line = null;
911908
for (int i = lineCount - 1; i >= 0; --i) {
912909
line = this._textPainter.getLineRange(i);
@@ -1189,7 +1186,8 @@ void _paintCaret(Canvas canvas, Offset effectiveOffset, TextPosition textPositio
11891186
}
11901187
}
11911188

1192-
public void setFloatingCursor(FloatingCursorDragState? state, Offset boundedOffset, TextPosition lastTextPosition,
1189+
public void setFloatingCursor(FloatingCursorDragState? state, Offset boundedOffset,
1190+
TextPosition lastTextPosition,
11931191
float? resetLerpValue = null) {
11941192
D.assert(boundedOffset != null);
11951193
D.assert(lastTextPosition != null);

0 commit comments

Comments
 (0)