Skip to content

Commit

Permalink
remove unused sample function
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Feb 16, 2024
1 parent e0398dd commit 0495160
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions testutil/sample/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,6 @@ func BallotList(n int, observerSet []string) []types.Ballot {
return ballotList
}

func Votes(voteCount int) []types.VoteType {
r := newRandFromSeed(int64(voteCount))
votes := make([]types.VoteType, voteCount)
voteTypes := []types.VoteType{types.VoteType_FailureObservation, types.VoteType_SuccessObservation, types.VoteType_NotYetVoted}
for i := 0; i < voteCount; i++ {
votes[i] = voteTypes[r.Intn(len(voteTypes))]
}
return votes
}

func VotesSuccessOnly(voteCount int) []types.VoteType {
votes := make([]types.VoteType, voteCount)
for i := 0; i < voteCount; i++ {
Expand Down

0 comments on commit 0495160

Please sign in to comment.