From d7391436ff96ff51e2417dc7edcf13ccb8300c30 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 11 Mar 2014 20:17:04 -0400 Subject: Get rid of some unreachable abort()s. --- main.c | 6 ------ 1 file changed, 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)); -- cgit v1.2.3