Remove Dead Code - #170
Remove Dead Code#170
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change improves nested public-reference detection and removes unused public APIs, exports, configuration types, and wire keys. A queue test now verifies emptiness through non-blocking pop behavior. ChangesReference detection
API and reference cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/unused_pub_detector.js`:
- Around line 221-227: Update the fallback branch around hasWord(fText, qn) so
nested-member matches require Parent and member to occur as the same
structurally related reference, rather than independently anywhere in the file;
preserve valid supported constructs and reject unrelated forms such as
Other.member. Add regression coverage for both valid and unrelated cross-file
matches.
In `@src/subscription/change_queue_test.zig`:
- Around line 128-131: Update the shard emptiness check in the test to retain
any value returned by shard.popTimed(0), deinitialize an unexpected
OwnedRecordChange with alloc before failing, and register queue.deinit() with
defer immediately after queue creation so cleanup runs even when the assertion
returns an error.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 48b59da9-609e-4b54-9238-e6278ea2acb8
📒 Files selected for processing (8)
scripts/unused_pub_detector.jssrc/connection/state.zigsrc/lock_free_cache.zigsrc/msgpack_utils.zigsrc/queues/spmc_blocking_queue.zigsrc/storage_engine.zigsrc/subscription/change_queue_test.zigsrc/wire/encode.zig
💤 Files with no reviewable changes (6)
- src/queues/spmc_blocking_queue.zig
- src/connection/state.zig
- src/wire/encode.zig
- src/lock_free_cache.zig
- src/msgpack_utils.zig
- src/storage_engine.zig
Summary by CodeRabbit
Refactor
Compatibility