Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed Nov 12, 2024
1 parent cf69df0 commit 1ce83cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions path.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,6 @@ func (h *heap32) Pop() (uint32, bool) {
return h.pop(), true
}

// Remove removes and returns the element at index i from the heap.
// The complexity is O(log n) where n = h.Len().
/*func (h *heap32) Remove(i int) uint32 {
n := h.Len() - 1
if n != i {
h.Swap(i, n)
if !h.down(i, n) {
h.up(i)
}
}
return h.pop()
}*/

func (h *heap32) pop() uint32 {
old := *h
n := len(old)
Expand Down

0 comments on commit 1ce83cd

Please sign in to comment.