From 8d3a302a1754a4e28cc1085b95e9a03981372d02 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 13 Jan 2016 21:36:44 +0900 Subject: Simplify Item structure This commit compensates for the performance overhead from the extended tiebreak option. --- src/core.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/core.go') 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))} -- cgit v1.2.3