summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/main.c b/main.c
index cd08967..d2f3871 100644
--- a/main.c
+++ b/main.c
@@ -229,13 +229,7 @@ main(void)
new_node = nodes + size/2 + width/2;
} else {
kd_node_t *nearest = kdf_find_nearest(&kdf, &target);
- if (!nearest) {
- abort();
- }
new_node = next_neighbor(nearest, width, height);
- if (!new_node) {
- abort();
- }
}
memcpy(new_node->coords, target.coords, sizeof(target.coords));