소스 검색

Remove unused code

Evan Huus 12 년 전
부모
커밋
e5a0f9bc72
1개의 변경된 파일0개의 추가작업 그리고 20개의 파일을 삭제
  1. 0 20
      fetch_response.go

+ 0 - 20
fetch_response.go

@@ -84,23 +84,3 @@ func (pr *fetchResponse) decode(pd packetDecoder) (err error) {
 
 	return nil
 }
-
-func (pr *fetchResponse) staleTopics() []*string {
-	ret := make([]*string, 0)
-
-	for i := range pr.topics {
-		topic := &pr.topics[i]
-
-	currentTopic:
-		for j := range topic.partitions {
-			partition := &topic.partitions[j]
-			switch partition.err {
-			case UNKNOWN, UNKNOWN_TOPIC_OR_PARTITION, LEADER_NOT_AVAILABLE, NOT_LEADER_FOR_PARTITION:
-				ret = append(ret, topic.name)
-				break currentTopic
-			}
-		}
-	}
-
-	return ret
-}