Browse Source

raft: remove unused IsMsgApp

Blake Mizerany 11 years ago
parent
commit
1b37f313a6
1 changed files with 0 additions and 4 deletions
  1. 0 4
      raft2/raft.go

+ 0 - 4
raft2/raft.go

@@ -79,10 +79,6 @@ type Message struct {
 	Snapshot Snapshot
 }
 
-func (m Message) IsMsgApp() bool {
-	return m.Type == msgApp
-}
-
 func (m Message) String() string {
 	return fmt.Sprintf("type=%v from=%x to=%x term=%d logTerm=%d i=%d ci=%d len(ents)=%d",
 		m.Type, m.From, m.To, m.Term, m.LogTerm, m.Index, m.Commit, len(m.Entries))