Skip to content

Commit

Permalink
Cleanup some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Aug 26, 2012
1 parent e58f8a1 commit 8c4c6d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions picker.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ func (label *Label) Picker(dnsType uint16, max int) Records {
copy(servers, label_rr)
result := make([]Record, max)
sum := label.Weight[dnsType]
sum2 := 0
for _, r := range servers {
sum2 += r.Weight
}

for si := 0; si < max; si++ {
n := rand.Intn(sum + 1)
Expand Down

0 comments on commit 8c4c6d2

Please sign in to comment.