removed unused function

This commit is contained in:
Elmar Kresse
2023-09-15 04:43:42 +02:00
parent e1d143908a
commit 53d8b7f970

View File

@ -2,9 +2,7 @@ package ical
import (
"bytes"
"crypto/rand"
"encoding/json"
"fmt"
"github.com/jordic/goics"
"github.com/labstack/echo/v5"
"github.com/pocketbase/pocketbase"
@ -57,15 +55,6 @@ func createFeedForToken(app *pocketbase.PocketBase, modules []string) (*model.Fe
return feed, nil
}
func randomToken(len int) string {
b := make([]byte, len)
read, err := rand.Read(b)
if err != nil {
return ""
}
return fmt.Sprintf("%x", read)
}
func writeSuccess(message string, w http.ResponseWriter) {
w.WriteHeader(http.StatusOK)
w.Write([]byte(message))