diff --git a/orx-kdtree/src/demo/kotlin/DemoKNearestNeighbour01.kt b/orx-kdtree/src/demo/kotlin/DemoKNearestNeighbour01.kt index bd5c30ba2..4fbc44d79 100644 --- a/orx-kdtree/src/demo/kotlin/DemoKNearestNeighbour01.kt +++ b/orx-kdtree/src/demo/kotlin/DemoKNearestNeighbour01.kt @@ -1,9 +1,6 @@ import org.openrndr.application import org.openrndr.color.ColorRGBa -import org.openrndr.extra.kdtree.buildKDTree -import org.openrndr.extra.kdtree.findKNearest import org.openrndr.extra.kdtree.kdTree -import org.openrndr.extra.kdtree.vector2Mapper import org.openrndr.math.Vector2 import org.openrndr.shape.LineSegment diff --git a/orx-kdtree/src/main/kotlin/KDTree.kt b/orx-kdtree/src/main/kotlin/KDTree.kt index 830305a47..68338dbb6 100644 --- a/orx-kdtree/src/main/kotlin/KDTree.kt +++ b/orx-kdtree/src/main/kotlin/KDTree.kt @@ -102,7 +102,6 @@ private fun insertItem(root: KDTreeNode, item: T): KDTreeNode { fun buildKDTree(items: MutableList, dimensions: Int, mapper: (T, Int) -> Double): KDTreeNode { val root = KDTreeNode(dimensions, mapper) - val start = System.currentTimeMillis() fun buildTreeTask( scope: CoroutineScope, node: KDTreeNode, @@ -172,7 +171,6 @@ fun buildKDTree(items: MutableList, dimensions: Int, mapper: (T, Int) -> runBlocking { job.join() } - println("building took ${System.currentTimeMillis() - start}ms") return root }