Procházet zdrojové kódy

rm unused isAborted

FrancoisPoinsot před 6 roky
rodič
revize
a7c1065b20
1 změnil soubory, kde provedl 0 přidání a 9 odebrání
  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