浏览代码

rm unused isAborted

FrancoisPoinsot 6 年之前
父节点
当前提交
a7c1065b20
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      fetch_response.go

+ 0 - 9
fetch_response.go

@@ -185,15 +185,6 @@ func (b *FetchResponseBlock) encode(pe packetEncoder, version int16) (err error)
 	return pe.pop()
 }
 
-func (r *FetchResponseBlock) IsAborted(offset int64) bool {
-	for _, abortedTransaction := range r.AbortedTransactions {
-		if abortedTransaction != nil && abortedTransaction.FirstOffset == offset {
-			return true
-		}
-	}
-	return false
-}
-
 type FetchResponse struct {
 	Blocks        map[string]map[int32]*FetchResponseBlock
 	ThrottleTime  time.Duration