Skip to content

Commit

Permalink
Replaced removeFirst() by removeAt(0), fixes #124
Browse files Browse the repository at this point in the history
Definitely not the best solution, but at least
it solves the immediate issue described in #124.
Unfortunately, updating Kotlin to the latest
version breaks our Gradle builds, so this is
a workaround while we manage to update everything.
  • Loading branch information
cereda authored and Ben Frank committed May 6, 2024
1 parent e8203bc commit e77d095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal open class Graph<T> {
.forEach { queue.add(it.key) }

while (queue.isNotEmpty()) {
val vertex: T = queue.removeFirst()
val vertex: T = queue.removeAt(0)
order.add(vertex)
vertices[vertex]?.forEach {
work[it] = work[it]!!.dec()
Expand Down

0 comments on commit e77d095

Please sign in to comment.