From 5f264cbbb1ecc3dc3aa1ca28fb4e36fe31065c38 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sun, 30 Nov 2008 18:31:04 +0000 Subject: [PATCH] Use more bucket functions. [r24170] --- heuristical.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/heuristical.c b/heuristical.c index 565dbf808..2f3e38d75 100644 --- a/heuristical.c +++ b/heuristical.c @@ -803,8 +803,5 @@ int node_is_reduced(pbqp_node *node) assert(node); if (ARR_LEN(node->edges) == 0) return 1; - unsigned bucket_length = node_bucket_get_length(reduced_bucket); - unsigned bucket_index = node->bucket_index; - - return bucket_index < bucket_length && reduced_bucket[bucket_index] == node; + return node_bucket_contains(reduced_bucket, node); } -- 2.20.1