Skip to content

Remove unused attachDependencies helper - #215

Merged
ra1028 merged 1 commit into
mainfrom
refactor-cleanup
Jun 18, 2026
Merged

ra1028 merged 1 commit into
mainfrom
refactor-cleanup

Conversation

@ra1028

@ra1028 ra1028 commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

StoreContext.attachDependencies(_:for:) has no call sites — only its counterpart detachDependencies(for:) is used. This removes the dead code.

No behavior change.

🤖 Generated with Claude Code

`StoreContext.attachDependencies(_:for:)` has no call sites; only its
counterpart `detachDependencies(for:)` is used. Remove the dead code.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 18, 2026 03:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes dead code in StoreContext by deleting the unused attachDependencies(_:for:) helper, keeping only the currently used dependency-detachment path. This simplifies the internal dependency bookkeeping API surface without changing runtime behavior.

Changes:

  • Removed StoreContext.attachDependencies(_:for:) from the private extension in StoreContext.swift.
  • Kept the existing detachDependencies(for:) flow (the one used by transactions) unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ra1028
ra1028 merged commit 7b8e2ae into main Jun 18, 2026
5 checks passed
@ra1028
ra1028 deleted the refactor-cleanup branch June 18, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants