refactor: remove unused constants and fields
This commit is contained in:
@@ -21,8 +21,6 @@ var (
|
||||
ErrNotAuthenticated = errors.New("not authenticated")
|
||||
)
|
||||
|
||||
const bcryptCost = 12
|
||||
|
||||
type Service struct {
|
||||
db db.Querier
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user