summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-03-11 20:17:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-03-11 20:17:13 -0400
commitd7391436ff96ff51e2417dc7edcf13ccb8300c30 (patch)
tree43bcf3cb2665fef58acb7562caecfff4bf827f30 /main.c
parent746fdfc554b5584476df93b6c8717d04814cc2d4 (diff)
downloadkd-forest-d7391436ff96ff51e2417dc7edcf13ccb8300c30.tar.xz
Get rid of some unreachable abort()s.
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));