From 4ac566c1f7cbb558d74904de419a771dc5bbc133 Mon Sep 17 00:00:00 2001 From: Max Brauer Date: Fri, 31 Dec 2021 09:28:35 +0100 Subject: [PATCH] Remove unused func from send-msg example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit โ€˜randomEmoji()โ€™ is redundant --- examples/send-msg/main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/send-msg/main.go b/examples/send-msg/main.go index f61c036..6e851b1 100644 --- a/examples/send-msg/main.go +++ b/examples/send-msg/main.go @@ -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",