refactor: remove unused constants and fields

This commit is contained in:
2026-05-12 16:06:15 +02:00
parent 2fba84edc1
commit a53fc91068
3 changed files with 0 additions and 8 deletions

View File

@@ -21,8 +21,6 @@ var (
ErrNotAuthenticated = errors.New("not authenticated")
)
const bcryptCost = 12
type Service struct {
db db.Querier
}

View File

@@ -27,8 +27,6 @@ type Service struct {
db db.Querier
proxyTokens *proxyTokenSigner
proxyHostCache *lru.Cache[string, proxyHostCacheItem]
cacheMu sync.RWMutex
showResolution *lru.Cache[int, showResolutionCacheItem]
playbackDataCache *lru.Cache[string, playbackDataCacheItem]
}

View File

@@ -87,10 +87,6 @@ var providerPriority = map[string]int{
"ss-hls": 30,
}
var sourceQualityDefaults = map[string]int{
"auto": 240,
}
func lookupPriority(m map[string]int, key string, fallback int) int {
if p, ok := m[strings.ToLower(key)]; ok {
return p