Remove dead code - #276
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (14)
💤 Files with no reviewable changes (3)
📜 Recent review details🔇 Additional comments (11)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR removes unused public APIs across multiple crates. It also simplifies anime construction, direct UI value wiring, GPU vendor tracking, and GPU power-status propagation. ChangesAPI and platform cleanup
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant GPUDiscovery
participant get_gpu_power_status
participant ControlCenter
GPUDiscovery->>get_gpu_power_status: discover GPU state
get_gpu_power_status->>ControlCenter: return GfxPower
ControlCenter->>ControlCenter: publish complete status value
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@rog-platform/src/gpu_pci.rs`:
- Line 269: Centralize AMD and NVIDIA PCI vendor classification in the existing
vendor-prefix constants. Update get_gpu_names to use the same constants as the
dgpu check around AMD_PCI_VENDOR, preserving its current case-insensitive
matching behavior and removing the hardcoded "1002" and "10DE" values.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a16562fa-39ac-455d-a3f5-d70e76674d77
📒 Files selected for processing (19)
asusd/src/aura_laptop/config.rsasusd/src/ctrl_platform.rsrog-anime/src/grid.rsrog-aura/src/builtin_modes.rsrog-aura/src/keyboard/advanced.rsrog-aura/src/keyboard/layouts.rsrog-aura/src/lib.rsrog-control-center/src/main.rsrog-control-center/src/shortcuts.rsrog-dbus/src/lib.rsrog-platform/src/asus_armoury.rsrog-platform/src/gpu_pci.rsrog-platform/src/hid_raw.rsrog-platform/src/platform.rsrog-platform/tests/gpu_pci_tests.rsrog-profiles/src/lib.rsrog-scsi/src/builtin_modes.rsrog-scsi/src/sg.rsrog-slash/src/usb.rs
💤 Files with no reviewable changes (16)
- asusd/src/aura_laptop/config.rs
- rog-profiles/src/lib.rs
- asusd/src/ctrl_platform.rs
- rog-aura/src/builtin_modes.rs
- rog-slash/src/usb.rs
- rog-dbus/src/lib.rs
- rog-anime/src/grid.rs
- rog-aura/src/keyboard/advanced.rs
- rog-control-center/src/shortcuts.rs
- rog-platform/src/hid_raw.rs
- rog-scsi/src/builtin_modes.rs
- rog-aura/src/lib.rs
- rog-platform/src/asus_armoury.rs
- rog-platform/src/platform.rs
- rog-scsi/src/sg.rs
- rog-aura/src/keyboard/layouts.rs
📜 Review details
🔇 Additional comments (6)
rog-platform/tests/gpu_pci_tests.rs (1)
8-8: LGTM!rog-platform/src/gpu_pci.rs (4)
252-321: LGTM!
654-661: LGTM!Also applies to: 755-755
411-436: 🚀 Performance & ScalabilityKeep this as-is.
get_gpu_power_status()runs only during watch-channel initialization.notify.rscaches the dGPU and rereadsruntime_statusevery 1.5 seconds, with full detection only when needed.> Likely an incorrect or invalid review comment.
162-185: 🗄️ Data Integrity & IntegrationNo in-repository references to
GfxVendororDevice::vendor()remain. The removal is safe for current workspace consumers.rog-control-center/src/main.rs (1)
176-176: LGTM!
Description
Removes dead code throughout the codebase
Tested Hardware & Environment
Verification and testing:
cargo fmt --all -- --check)cargo clippy --all -- -D warnings/cargo check --all-targets)cargo test --all)cargo cranky)