removing unused code

pull/2485/head
Cory LaNou 2015-05-04 09:52:47 -06:00
parent 5bd53e5450
commit 3205d8e182
1 changed files with 0 additions and 2 deletions

View File

@ -839,7 +839,6 @@ func (l *Log) stateLoop(closing <-chan struct{}, state State, stateChanged chan
for {
// Transition to new state.
var transitioning chan struct{}
func() {
l.lock()
defer l.unlock()
@ -847,7 +846,6 @@ func (l *Log) stateLoop(closing <-chan struct{}, state State, stateChanged chan
l.tracef("log state change: %s => %s (term=%d)", l.state, state, l.term)
l.state = state
l.transitioning = make(chan struct{}, 0)
transitioning = l.transitioning
// Remove previous reader, if one exists.
_ = l.setReader(nil)