mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
removed unused function
This commit is contained in:
@@ -2,9 +2,7 @@ package ical
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/rand"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"github.com/jordic/goics"
|
"github.com/jordic/goics"
|
||||||
"github.com/labstack/echo/v5"
|
"github.com/labstack/echo/v5"
|
||||||
"github.com/pocketbase/pocketbase"
|
"github.com/pocketbase/pocketbase"
|
||||||
@@ -57,15 +55,6 @@ func createFeedForToken(app *pocketbase.PocketBase, modules []string) (*model.Fe
|
|||||||
return feed, nil
|
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) {
|
func writeSuccess(message string, w http.ResponseWriter) {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
w.Write([]byte(message))
|
w.Write([]byte(message))
|
||||||
|
Reference in New Issue
Block a user