From 7f5eac3e7a4dd0f9dfc1f9619b4e200788acc431 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 23 Apr 2025 18:06:44 +0100 Subject: [PATCH] remove unused code --- internal/middleware/nollamas_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/middleware/nollamas_test.go b/internal/middleware/nollamas_test.go index 0d3b74cbe..646878242 100644 --- a/internal/middleware/nollamas_test.go +++ b/internal/middleware/nollamas_test.go @@ -24,7 +24,6 @@ import ( "io" "net/http" "net/http/httptest" - "regexp" "slices" "strconv" "strings" @@ -40,9 +39,6 @@ import ( "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) { // Gin test engine. e := gin.New()