This repository was archived by the owner on Apr 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,6 @@ class TabStops {
15
15
16
16
const int kTabSpaceCount = 4 ;
17
17
18
- List < int > _stops = new List < int > ( ) ;
19
-
20
- public void set ( List < int > stops , int tabWidth ) {
21
- this . _stops . Clear ( ) ;
22
- if ( stops != null ) {
23
- this . _stops . AddRange ( stops ) ;
24
- }
25
-
26
- this . _tabWidth = tabWidth ;
27
- }
28
-
29
18
public void setFont ( Font font , int size ) {
30
19
if ( this . _font != font || this . _fontSize != size ) {
31
20
this . _tabWidth = int . MaxValue ;
@@ -42,12 +31,6 @@ public void setFont(Font font, int size) {
42
31
}
43
32
44
33
public float nextTab ( float widthSoFar ) {
45
- for ( int i = 0 ; i < this . _stops . Count ; i ++ ) {
46
- if ( this . _stops [ i ] > widthSoFar ) {
47
- return this . _stops [ i ] ;
48
- }
49
- }
50
-
51
34
if ( this . _tabWidth == int . MaxValue ) {
52
35
if ( this . _fontSize > 0 ) {
53
36
this . _tabWidth = this . _spaceAdvance * kTabSpaceCount ;
Original file line number Diff line number Diff line change 1
1
2
2
namespace Unity . UIWidgets . ui {
3
- class WordBreaker {
3
+ struct WordBreaker {
4
4
public const uint U16_SURROGATE_OFFSET = ( ( 0xd800 << 10 ) + 0xdc00 - 0x10000 ) ;
5
5
TextBuff _text ;
6
6
int _current ;
You can’t perform that action at this time.
0 commit comments