summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-01-13 21:36:44 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-01-14 01:12:49 +0900
commit8d3a302a1754a4e28cc1085b95e9a03981372d02 (patch)
treea5b95363609d3acebda69890fd6b7b59b18f9c02 /src/core.go
parent1d2d32c847e39818bedae5f86ca75e6b70b60444 (diff)
Simplify Item structure
This commit compensates for the performance overhead from the extended tiebreak option.
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core.go b/src/core.go
index 1906c508..24af0507 100644
--- a/src/core.go
+++ b/src/core.go
@@ -103,7 +103,6 @@ func Run(opts *Options) {
runes, colors := ansiProcessor(data)
return &Item{
text: runes,
- index: int32(index),
colors: colors,
rank: buildEmptyRank(int32(index))}
})
@@ -120,7 +119,6 @@ func Run(opts *Options) {
item := Item{
text: joinTokens(trans),
origText: &runes,
- index: int32(index),
colors: nil,
rank: buildEmptyRank(int32(index))}