aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-01 17:14:58 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:27 +0100
commitd36950988414b24180ffaa271fd943632ce26a79 (patch)
tree4e3cf614afbad1d1e6c57ff639473270abbc40c2 /src
parent1a5c83e23da5411aeb396e54acd9fd42a0900398 (diff)
Tidy up dead code and formatting
Diffstat (limited to 'src')
-rw-r--r--src/geometry.c24
-rw-r--r--src/geometry.h2
-rw-r--r--src/indexamajig.c2
3 files changed, 0 insertions, 28 deletions
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 */