mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
removed unused function
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user