fixup unused functions/vars

This commit is contained in:
Evan Jarrett
2026-01-04 21:16:02 -06:00
parent 680e4bdfe2
commit fbcaf56fce
7 changed files with 5 additions and 45 deletions
-10
View File
@@ -115,16 +115,6 @@ func (m *mockUISessionStore) DeleteByDID(did string) {
}
}
type mockRefresher struct {
invalidateSessionFunc func(did string)
}
func (m *mockRefresher) InvalidateSession(did string) {
if m.invalidateSessionFunc != nil {
m.invalidateSessionFunc(did)
}
}
// ServeAuthorize tests
func TestServer_ServeAuthorize_MissingHandle(t *testing.T) {
-2
View File
@@ -2,7 +2,6 @@ package token
import (
"context"
"crypto/rsa"
"crypto/tls"
"database/sql"
"encoding/base64"
@@ -22,7 +21,6 @@ import (
// Shared test key to avoid generating a new RSA key for each test
// Generating a 2048-bit RSA key takes ~0.15s, so reusing one key saves ~4.5s for 32 tests
var (
sharedTestKey *rsa.PrivateKey
sharedTestKeyPath string
sharedTestKeyOnce sync.Once
sharedTestKeyDir string
-1
View File
@@ -19,7 +19,6 @@ import (
// Shared test key to avoid generating a new RSA key for each test
// Generating a 2048-bit RSA key takes ~0.15s, so reusing one key saves significant time
var (
issuerSharedTestKey *rsa.PrivateKey
issuerSharedTestKeyPath string
issuerSharedTestKeyOnce sync.Once
issuerSharedTestKeyDir string