From e40b3ad338f45d2241deef57664b3b10c8d64da2 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 18 Aug 2022 18:00:25 +0200 Subject: Remove unused `n` from PQ; add `reflect.is_bit_set` --- core/container/priority_queue/priority_queue.odin | 1 - 1 file changed, 1 deletion(-) (limited to 'core/container/priority_queue') diff --git a/core/container/priority_queue/priority_queue.odin b/core/container/priority_queue/priority_queue.odin index e324287f3..0c5c4931d 100644 --- a/core/container/priority_queue/priority_queue.odin +++ b/core/container/priority_queue/priority_queue.odin @@ -85,7 +85,6 @@ _shift_down :: proc(pq: ^$Q/Priority_Queue($T), i0, n: int) -> bool { _shift_up :: proc(pq: ^$Q/Priority_Queue($T), j: int) { j := j queue := pq.queue[:] - n := builtin.len(queue) for 0 <= j { i := (j-1)/2 if i == j || !pq.less(queue[j], queue[i]) { -- cgit v1.2.3