Skip to content

Commit

Permalink
chore: removed unused method
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Montagnin <[email protected]>
  • Loading branch information
RiccardoM committed Feb 7, 2024
1 parent f937baf commit c298114
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions x/posts/types/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,14 +791,6 @@ func (a *Poll_ProvidedAnswer) UnpackInterfaces(unpacker codectypes.AnyUnpacker)

// --------------------------------------------------------------------------------------------------------------------

func MapAnswersIndexesToStrings(answersIndexes []uint32) []string {
answers := make([]string, len(answersIndexes))
for i, answer := range answersIndexes {
answers[i] = strconv.FormatUint(uint64(answer), 10)
}
return answers
}

// NewUserAnswer returns a new UserAnswer instance
func NewUserAnswer(subspaceID uint64, postID uint64, pollID uint32, answersIndexes []uint32, user string) UserAnswer {
return UserAnswer{
Expand Down

0 comments on commit c298114

Please sign in to comment.