cleanup: remove unused nodeNamesLen function from scheduler - #2735
cleanup: remove unused nodeNamesLen function from scheduler#2735KunwarSidhu47 wants to merge 2 commits into
Conversation
Signed-off-by: KunwarSidhu47 <kunwarsidhu1947@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: KunwarSidhu47 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe scheduler removes the unused private Changes
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change removes unused scheduler code without altering behavior, so no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Signed-off-by: KunwarSidhu47 <kunwarsidhu1947@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
closing: #2687 needs this helper for its nil guard, removing it now just conflicts with that fix. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR removes the
nodeNamesLen(nodeNames *[]string) inthelper function frompkg/scheduler/scheduler.go.During a static analysis pass, it was discovered that this function is completely unused (dead code). Removing it cleans up the scheduler package, reduces technical debt, and clears unnecessary clutter.
Since this cleanup is strictly scoped to the scheduler extender, it does not affect device allocation or in-container isolation. Therefore, it respects Contribution Guideline #2 and can be safely merged using existing testing without requiring real GPU hardware validation.
Which issue(s) this PR fixes:
Fixes #2694
Special notes for your reviewer:
This is a pure dead-code removal. No functionality has been altered.
Does this PR introduce a user-facing change?: