From 1f9ef4260f5200b5dacbf1d8b0811a8f7e88002d Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 2 Dec 2024 10:34:48 +0300 Subject: [PATCH] chore: rm unused func --- cmd/bot/util.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/bot/util.go b/cmd/bot/util.go index 095b03c..2a0ac95 100644 --- a/cmd/bot/util.go +++ b/cmd/bot/util.go @@ -9,7 +9,3 @@ func tokHash(token string) string { h := md5.Sum([]byte(token + "gotd-token-salt")) // #nosec return fmt.Sprintf("%x", h[:5]) } - -func sessionFileName(token string) string { - return fmt.Sprintf("bot.%s.session.json", tokHash(token)) -}