From 86c66cd8021d0218bca5c7b6bedba75dc130860b Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sat, 25 Oct 2014 19:56:13 -0700 Subject: [PATCH] raft: remove unused code --- raft/log.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/raft/log.go b/raft/log.go index 032fc10d3..f591e1b35 100644 --- a/raft/log.go +++ b/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))