소스 검색

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()
 	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 {
 type FetchResponse struct {
 	Blocks        map[string]map[int32]*FetchResponseBlock
 	Blocks        map[string]map[int32]*FetchResponseBlock
 	ThrottleTime  time.Duration
 	ThrottleTime  time.Duration