Merged in chore/remove-unused-code (pull request #2229)

Remove unused code

* Remove unused scandic-web files

* Remove unused exports


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-05-30 12:41:18 +00:00
parent 44e648e758
commit 7e97b74c18
76 changed files with 1 additions and 3210 deletions

View File

@@ -10,13 +10,3 @@ export function getCacheEndpoint(key: string) {
return url
}
export function getClearCacheEndpoint() {
if (!env.REDIS_API_HOST) {
throw new Error("REDIS_API_HOST is not set")
}
const url = new URL(`/api/cache/clear`, env.REDIS_API_HOST)
return url
}

View File

@@ -1,5 +0,0 @@
import { env } from "@/env/server"
export function shouldHaveFullTtl() {
return env.BRANCH === "release"
}

View File

@@ -1,9 +0,0 @@
import { cacheLogger } from "@/services/dataCache/logger"
import { cacheMap } from "./cacheMap"
export async function deleteAll() {
cacheLogger.debug("Deleting all keys")
cacheMap.clear()
}