Skip to content
Myr

Remove dead code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 098ef4d · Browse files · 1 file+0 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−7 removed

  • other:+0 added−7 removed

1 file+0 added−7 removed

modified:src/core.go-7 removed
229 unmodified lines
230 }231232 useSnapshot := false233 var snapshot []*Chunk234 var prevSnapshot []*Chunk234 var count int235 restart := func(command string) {236 reading = true237 clearCache = util.Once(true)238 clearSelection = util.Once(true)240 // We should not update snapshot if reload is triggered again while241 // the previous reload is in progress242 if useSnapshot && prevSnapshot != nil {243 snapshot, count = chunkList.Snapshot()244 }239 chunkList.Clear()240 itemIndex = 0241 header = make([]string, 0, opts.HeaderLines)242 go reader.restart(command)
30 unmodified lines
273 reading = reading && evt == EvtReadNew274 }275 if useSnapshot && evt == EvtReadFin {276 useSnapshot = false283 prevSnapshot = nil277 }278 if !useSnapshot {279 snapshot, count = chunkList.Snapshot()280 }
99 unmodified lines