From 63bb68d5828e00a61fcecc6d25b4e5e7b80aef76 Mon Sep 17 00:00:00 2001 From: vaporvee Date: Wed, 10 Apr 2024 17:02:39 +0200 Subject: [PATCH] removed unused funtions --- tool.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tool.go b/tool.go index a664af9..242061b 100644 --- a/tool.go +++ b/tool.go @@ -140,8 +140,6 @@ func getHighestRole(guildID string, c bot.Client) (*discord.Role, error) { return highestRole, nil } -func ptr(s string) *string { return &s } - func hexToDecimal(hexColor string) int { hexColor = strings.TrimPrefix(hexColor, "#") decimal, err := strconv.ParseInt(hexColor, 16, 64) @@ -151,11 +149,6 @@ func hexToDecimal(hexColor string) int { return int(decimal) } -func decimalToHex(decimal int) string { - hexString := strconv.FormatInt(int64(decimal), 16) - return hexString -} - func simpleGetFromAPI(key string, url string) interface{} { client := &http.Client{} req, err := http.NewRequest("GET", url, nil)