Browse Source

Merge pull request #1420 from xiangli-cmu/clean_log

raft: remove unused code
Xiang Li 11 years ago
parent
commit
40048d7300
1 changed files with 0 additions and 4 deletions
  1. 0 4
      raft/log.go

+ 0 - 4
raft/log.go

@@ -40,10 +40,6 @@ func newLog() *raftLog {
 	}
 }
 
-func (l *raftLog) isEmpty() bool {
-	return l.offset == 0 && len(l.ents) == 1
-}
-
 func (l *raftLog) load(ents []pb.Entry) {
 	l.ents = ents
 	l.unstable = l.offset + uint64(len(ents))