瀏覽代碼

Remove unused comparison functions.

Jakob Borg 11 年之前
父節點
當前提交
bcb5f6f472
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      protocol/message.go

+ 0 - 8
protocol/message.go

@@ -32,14 +32,6 @@ func (f FileInfo) Size() (bytes int64) {
 	return
 }
 
-func (a FileInfo) Equals(b FileInfo) bool {
-	return a.Version == b.Version
-}
-
-func (a FileInfo) NewerThan(b FileInfo) bool {
-	return a.Version > b.Version
-}
-
 type BlockInfo struct {
 	Offset int64 // noencode (cache only)
 	Size   uint32