mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Add more performance and memory optimizations
This commit is contained in:
@@ -180,14 +180,6 @@ func (la *LineArray) Substr(start, end Loc) string {
|
||||
return str
|
||||
}
|
||||
|
||||
func (la *LineArray) LineData() [][]byte {
|
||||
lines := make([][]byte, len(la.lines))
|
||||
for i, l := range la.lines {
|
||||
lines[i] = l.data
|
||||
}
|
||||
return lines
|
||||
}
|
||||
|
||||
func (la *LineArray) State(lineN int) highlight.State {
|
||||
return la.lines[lineN].state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user