Merge pull request #1420 from xiangli-cmu/clean_log

raft: remove unused code
This commit is contained in:
Xiang Li 2014-10-26 20:14:05 -07:00
commit 40048d7300

View File

@ -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))