Skip to content

Commit

Permalink
[YUNIKORN-2071] Remove updateAllocatedAndPendingResourceMetrics (#685)
Browse files Browse the repository at this point in the history
Dead code removal

Closes: #685

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
wilfred-s committed Oct 25, 2023
1 parent 3c33715 commit bc7c001
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/scheduler/objects/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1555,14 +1555,6 @@ func (sq *Queue) updateMaxResourceMetrics() {
}
}

// updateAllocatedAndPendingResourceMetrics updates allocated and pending resource metrics for all queue types.
// Deprecated: use specific metric update function for efficiency.
func (sq *Queue) updateAllocatedAndPendingResourceMetrics() {
sq.updateAllocatedResourceMetrics()
sq.updatePendingResourceMetrics()
sq.updatePreemptingResourceMetrics()
}

// updateAllocatedResourceMetrics updates allocated resource metrics for all queue types.
func (sq *Queue) updateAllocatedResourceMetrics() {
for k, v := range sq.allocatedResource.Resources {
Expand Down

0 comments on commit bc7c001

Please sign in to comment.