diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-03-11 20:17:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-03-11 20:17:13 -0400 |
commit | d7391436ff96ff51e2417dc7edcf13ccb8300c30 (patch) | |
tree | 43bcf3cb2665fef58acb7562caecfff4bf827f30 | |
parent | 746fdfc554b5584476df93b6c8717d04814cc2d4 (diff) | |
download | kd-forest-d7391436ff96ff51e2417dc7edcf13ccb8300c30.tar.xz |
Get rid of some unreachable abort()s.
-rw-r--r-- | main.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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)); |