Browse Source

rm unused isAborted

FrancoisPoinsot 6 years ago
parent
commit
a7c1065b20
1 changed files with 0 additions and 9 deletions
  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