Remove special nilItem

This commit is contained in:
Junegunn Choi committed 2017-08-15 01:10:41 +09:00
1 parent 2069bbc8b5
commit 0d171ba1d8
9 files changed
+49 -51

No files matched your search

+1 -5
View File
@@ -17,11 +17,7 @@ func (item *Item) Index() int32 {
return item.text.Index
}
var nilItem = Item{text: util.Chars{Index: -1}}
func (item *Item) Nil() bool {
return item.Index() < 0
}
var minItem = Item{text: util.Chars{Index: -1}}
func (item *Item) TrimLength() uint16 {
return item.text.TrimLength()