浏览代码

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
 	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
-}