Remove unimplemented Purge and three unused interfaces (closes #73)
check / check (push) Failing after 2s

Purge only returned an error and nothing called it, so it is gone from
the ImageCache interface and from Service, along with its error value.
It can be added back when something needs it; eviction reclaims disk
space meanwhile. The SignatureValidator, Allowlist and Storage
interfaces in imgcache.go had no implementers and no users, and
described types that look different from the real ones, so they are
deleted. No behaviour changes.

Model: opus-5-5
This commit was merged in pull request #175.
This commit is contained in:
2026-10-04 08:41:37 +02:00
parent 5b17d1f555
commit 6830bdc5de
3 changed files with 8 additions and 39 deletions
+5
View File
@@ -29,6 +29,11 @@ P2: security: referer blacklist
# Completed Steps
- 2026-10-04 dead code in `internal/imgcache` is gone (closes #73): `Purge`,
which only returned an error and which nothing called, is no longer part of
the `ImageCache` interface or `Service`; the `SignatureValidator`,
`Allowlist` and `Storage` interfaces, which nothing implemented or used, are
deleted. Nothing else changes.
- 2026-10-04 upstream host semaphores and variant `.meta` files no longer
outlive their use (closes #87): the fetcher counts the fetches holding or
waiting for a slot of each upstream host's semaphore and removes the host's