remove unused code

This commit is contained in:
kim 2025-04-23 18:06:44 +01:00
commit 7f5eac3e7a

View file

@ -24,7 +24,6 @@ import (
"io" "io"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"regexp"
"slices" "slices"
"strconv" "strconv"
"strings" "strings"
@ -40,9 +39,6 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/router" "github.com/superseriousbusiness/gotosocial/internal/router"
) )
var challengeRegexp = regexp.MustCompile("data-nollamas-challenge=\".+\"")
var difficultyRegexp = regexp.MustCompile("data-nollamas-difficulty=\".+\"")
func TestNoLLaMasMiddleware(t *testing.T) { func TestNoLLaMasMiddleware(t *testing.T) {
// Gin test engine. // Gin test engine.
e := gin.New() e := gin.New()