Skip to content

refactor(files_external/S3): drop unused methods#58654

Merged
come-nc merged 2 commits intomasterfrom
jtr/refactor-external-s3-unused-methods
Mar 2, 2026
Merged

refactor(files_external/S3): drop unused methods#58654
come-nc merged 2 commits intomasterfrom
jtr/refactor-external-s3-unused-methods

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Mar 1, 2026

  • Resolves: #

Summary

The methods getContentLength() and getLastModified() are dead code. Originally added in PR #11518 and made defunct in PR #29220.

TODO

  • Follow-up: $this->filesCache possibly is dead too
  • Drop $this->filesCache usage sites that are no-ops
  • Follow-up (separate to avoid conflicts with pending related PRs): drop $this->filesCache entirely from this class

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

getContentLength() and getLastModified() are dead code. Originally added in PR #11518 and made defunct in PR #29220.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards requested a review from a team as a code owner March 1, 2026 17:45
@joshtrichards joshtrichards requested review from CarlSchwan, icewind1991, kesselb, leftybournes and salmart-dev and removed request for a team March 1, 2026 17:45
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Mar 1, 2026
@joshtrichards joshtrichards added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) feature: external storage feature: object storage labels Mar 1, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
@come-nc come-nc merged commit 7f18934 into master Mar 2, 2026
197 of 199 checks passed
@come-nc come-nc deleted the jtr/refactor-external-s3-unused-methods branch March 2, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: external storage feature: object storage ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants