Remove some deadcode#11034
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (5)
📝 WalkthroughWalkthroughRemoves obsolete public helper declarations, disabled diagnostic and preference-deletion blocks, and an empty web-response handler stub across filesystem, power, radio, HTTPS, and Raspberry Pi web-server code. ChangesAPI and implementation cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@NomDeTom is mad about me removing |
|
Never mind tom was commenting before looking at the code. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
This PR removes unused/disabled code paths and unused API surface area to reduce clutter and keep the codebase leaner.
Changes:
- Removed unused no-op and disabled debug/testing blocks in HTTP and SX126x initialization code.
- Removed
PowerStatus::knowsUSB()from the publicPowerStatusinterface. - Removed the
fsListFiles()declaration from the filesystem common header.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/mesh/raspihttp/PiWebServer.cpp | Removes an unused empty handler function. |
| src/mesh/http/WebServer.cpp | Removes a disabled #if 0 debug block for cert key deletion. |
| src/mesh/SX126xInterface.cpp | Removes a disabled #if 0 SPI register read/write test block. |
| src/PowerStatus.h | Removes knowsUSB() from the public status API. |
| src/FSCommon.h | Removes the fsListFiles() API declaration. |
⚡ Try this PR in the Web FlasherNote Building this pull request… the flash button, badges and supported-board |
🤝 Attestations
It looks to build.
Summary by CodeRabbit
Refactor
Bug Fixes