[MIRROR] Removes __DATASTRUCTURES (#4791)
* Removes unused datastructures (#34292) * Removes __DATASTRUCTURES * Update heap.dm * Update heap.dm * heap
This commit is contained in:
committed by
Poojawa
parent
71f5bee4c4
commit
d47ab945fe
@@ -38,6 +38,7 @@
|
||||
|
||||
while(parent > 0 && (call(cmp)(L[index],L[parent]) > 0))
|
||||
L.Swap(index,parent)
|
||||
|
||||
index = parent
|
||||
parent = round(index * 0.5)
|
||||
|
||||
@@ -67,7 +68,6 @@
|
||||
//Replaces a given node so it verify the heap condition
|
||||
/datum/Heap/proc/ReSort(atom/A)
|
||||
var/index = L.Find(A)
|
||||
|
||||
Swim(index)
|
||||
Sink(index)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user