From d36950988414b24180ffaa271fd943632ce26a79 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 1 Jun 2011 17:14:58 +0200 Subject: Tidy up dead code and formatting --- src/geometry.c | 24 ------------------------ src/geometry.h | 2 -- src/indexamajig.c | 2 -- 3 files changed, 28 deletions(-) (limited to 'src') diff --git a/src/geometry.c b/src/geometry.c index ed24e9a7..440f7698 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -270,30 +270,6 @@ RefList *find_intersections(struct image *image, UnitCell *cell, } -double integrate_all(struct image *image, RefList *reflections) -{ - double itot = 0.0; - Reflection *refl; - RefListIterator *iter; - - for ( refl = first_refl(reflections, &iter); - refl != NULL; - refl = next_refl(refl, iter) ) { - - double x, y, intensity; - double xp, yp; - get_detector_pos(refl, &xp, &yp); - - if ( integrate_peak(image, xp, yp, &x, &y, &intensity, NULL, - NULL, NULL, 0, 0) ) continue; - - itot += intensity; - } - - return itot; -} - - /* Decide which reflections can be scaled */ static void select_scalable_reflections(RefList *list, ReflItemList *sc_l) { diff --git a/src/geometry.h b/src/geometry.h index 171368a7..6f45a2c8 100644 --- a/src/geometry.h +++ b/src/geometry.h @@ -22,8 +22,6 @@ extern RefList *find_intersections(struct image *image, UnitCell *cell, int output); -extern double integrate_all(struct image *image, RefList *reflections); - extern void update_partialities(struct image *image, const char *sym, ReflItemList *scalable, int *n_expected, int *n_found, int *n_notfound); diff --git a/src/indexamajig.c b/src/indexamajig.c index 017b91eb..b7ec6345 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -315,8 +315,6 @@ static void process_image(void *pp, int cookie) config_verbose, pargs->static_args.ipriv, pargs->static_args.config_insane); - - if ( image.indexed_cell != NULL ) pargs->indexable = 1; /* Measure intensities if requested */ -- cgit v1.2.3