removed unused funtions

This commit is contained in:
2024-04-10 17:02:39 +02:00
parent 5ecbcf93f2
commit 63bb68d582

View File

@@ -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)