From b9f85a38b51eaa8b0590deedfc2cc9c247e920db Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 31 Oct 2018 00:55:28 -0700 Subject: libix2: trivial whitespace fixes --- src/ix2.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/ix2.c b/src/ix2.c index e955283..d7c86b4 100644 --- a/src/ix2.c +++ b/src/ix2.c @@ -377,12 +377,10 @@ static ix2_object_t * add_object(ix2_t *ix2, unsigned *depth, ix2_node_t *node, return object; } - /* Node is a leaf, optimistically link the object to the node */ if (!link_object(object, node, reference_cache)) goto _fail; - /* If the node is overflowing, split it */ if (node->n_objects > ix2->max_per_node && *depth < ix2->max_depth) { *depth++; @@ -581,7 +579,6 @@ unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb cb, void *c n_hits++; } - return n_hits; } @@ -611,12 +608,11 @@ static void search_node_by_aabb(ix2_node_t *node, bb2f_t *node_aabb, v2f_t *sear return; } - list_for_each_entry_safe(ref, _ref, &node->objects, objects) { if (!aabb_overlap(&ref->object->position, &ref->object->origin, &ref->object->aabb, search_position, search_origin, search_aabb)) continue; - list_move_tail(&ref->object->hits, hits); + list_move_tail(&ref->object->hits, hits); } } -- cgit v1.2.3