From 6e66a23c340e9541cf4c2661342d8a149c4d8f0d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 20 Jan 2012 20:47:54 -0800 Subject: Remove unused variables --- libcrystfel/src/reax.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'libcrystfel/src/reax.c') diff --git a/libcrystfel/src/reax.c b/libcrystfel/src/reax.c index 93b93659..17fa69f3 100644 --- a/libcrystfel/src/reax.c +++ b/libcrystfel/src/reax.c @@ -506,27 +506,17 @@ static void find_candidates(struct reax_private *p, { int i; double th, ph; - double fom; for ( i=0; in_search; i++ ) { s->search[i].cand = NULL; s->search[i].n_cand = 0; } - fom = 0.0; th = 0.0; ph = 0.0; + th = 0.0; ph = 0.0; for ( i=0; in_dir; i++ ) { - - double new_fom; - - new_fom = check_dir(&p->directions[i], flist, + check_dir(&p->directions[i], flist, p->nel, pmax, fft_in, fft_out, p->plan, s, NULL, NULL); - if ( new_fom > fom ) { - fom = new_fom; - th = p->directions[i].th; - ph = p->directions[i].ph; - } - } squash_vectors(s, INC_TOL_MULTIPLIER*p->angular_inc); -- cgit v1.2.3