瀏覽代碼

whisper: remove unused error (#17315)

b00ris 7 年之前
父節點
當前提交
8461fea44b
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      whisper/whisperv6/doc.go

+ 0 - 7
whisper/whisperv6/doc.go

@@ -33,7 +33,6 @@ particularly the notion of singular endpoints.
 package whisperv6
 
 import (
-	"fmt"
 	"time"
 )
 
@@ -79,12 +78,6 @@ const (
 	DefaultSyncAllowance = 10 // seconds
 )
 
-type unknownVersionError uint64
-
-func (e unknownVersionError) Error() string {
-	return fmt.Sprintf("invalid envelope version %d", uint64(e))
-}
-
 // MailServer represents a mail server, capable of
 // archiving the old messages for subsequent delivery
 // to the peers. Any implementation must ensure that both