chore: remove unused ImageNormalizer::read plumbing - #1693
Open
detail-app[bot] wants to merge 1 commit into
Open
detail-app[bot] wants to merge 1 commit into
detail-app[bot] wants to merge 1 commit into
Conversation
Deploying control-layer with
|
| Latest commit: |
b54b16b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3fae6a7e.control-layer.pages.dev |
| Branch Preview URL: | https://detail-dead-code-chore-remov-2any.control-layer.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the
readmethod from theImageNormalizertrait and itsimplementations (
DisabledNormalizer,DefaultImageNormalizer), alongwith the cascading
ImageStore::readtrait method and its three backendimpls (
MemoryStore,GcsStore,S3CompatStore) and the two teststhat exercised them.
The
readmethod had no production callers anywhere in the workspace.Its trait doc comment claimed it was "Used by the dashboard image
endpoint (after authorisation)", but the dashboard endpoint
(
GET /admin/api/v1/images/:sha256inapi/handlers/images.rs) usessign+ a 302 redirect to a short-lived signed URL, deliberatelykeeping dwctl off the bytes egress path. The comment actively misleads.
Removing the trait method also made the
ImageStore::readimpls deadas a cascade (their only production consumer was
DefaultImageNormalizer::read).History
Dead Code PRs can be configured here.