Skip to content

Commit

Permalink
Remove unused func from send-msg example
Browse files Browse the repository at this point in the history
‘randomEmoji()’ is redundant
  • Loading branch information
mamachanko authored and meowgorithm committed Jan 11, 2022
1 parent d266bc1 commit 4ac566c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions examples/send-msg/main.go
Expand Up @@ -128,11 +128,6 @@ func main() {
<-done
}

func randomEmoji() string {
emojis := []rune("🍦🧋🍡🤠👾😭🦊🐯🦆🥨🎏🍔🍒🍥🎮📦🦁🐶🐸🍕🥐🧲🚒🥇🏆🌽")
return string(emojis[rand.Intn(len(emojis))])
}

func randomFood() string {
food := []string{"an apple", "a pear", "a gherkin", "a party gherkin",
"a kohlrabi", "some spaghetti", "tacos", "a currywurst", "some curry",
Expand Down

0 comments on commit 4ac566c

Please sign in to comment.