Skip to content

Commit

Permalink
[YUNIKORN-2071] Remove updateAllocatedAndPendingResourceMetrics
Browse files Browse the repository at this point in the history
Dead code removal
  • Loading branch information
wilfred-s committed Oct 24, 2023
1 parent 5a9d1b5 commit b944c0b
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 b944c0b

Please sign in to comment.