From 21679d8e17a80571d09e374094ed3ff2e720bf74 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Jul 2021 13:17:52 +0200 Subject: TakeTwo: Remove unused variables --- libcrystfel/src/indexers/taketwo.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/indexers/taketwo.c b/libcrystfel/src/indexers/taketwo.c index 68b2897c..78921a9f 100644 --- a/libcrystfel/src/indexers/taketwo.c +++ b/libcrystfel/src/indexers/taketwo.c @@ -1169,8 +1169,6 @@ static double obs_to_sol_score(struct TakeTwoCell *ttCell) static void match_all_obs_to_sol(struct TakeTwoCell *ttCell) { int i, j; - double total = 0; - int count = 0; gsl_matrix *solution = ttCell->solution; for (i = 0; i < ttCell->obs_vec_count; i++) @@ -1200,17 +1198,7 @@ static void match_all_obs_to_sol(struct TakeTwoCell *ttCell) } ttCell->obs_vecs[i].assignment = assigned; - - if (smallest != FLT_MAX) - { - double addition = exp(-(1 / RECIP_TOLERANCE) * smallest); - total += addition; - count++; - - } } - - total /= (double)count; } /** -- cgit v1.2.3