From 8327929451983c2c8e999692d7fbf9221e78d365 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 9 Apr 2009 13:10:42 +0100 Subject: Remove watchpoints --- src/reflections.c | 6 ------ src/reproject.c | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/src/reflections.c b/src/reflections.c index ce5f7a9..3eed317 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -91,7 +91,6 @@ void reflectionlist_free(ReflectionList *reflectionlist) { Reflection *reflection_add(ReflectionList *reflectionlist, double x, double y, double z, double intensity, ReflectionType type) { Reflection *new_reflection; - Reflection *nearest; if ( reflectionlist->list_capped ) return NULL; @@ -101,11 +100,6 @@ Reflection *reflection_add(ReflectionList *reflectionlist, double x, double y, d reflectionlist->list_capped = 1; } -// nearest = reflectionlist_find_nearest_type(reflectionlist, x, y, z, type); -// if ( nearest && distance3d(x, y, z, nearest->x, nearest->y, nearest->z) < 0.1e9 ) { -// printf("Too close\n"); -// return NULL; -//} new_reflection = malloc(sizeof(Reflection)); new_reflection->next = NULL; new_reflection->x = x; diff --git a/src/reproject.c b/src/reproject.c index e0199af..41040b9 100644 --- a/src/reproject.c +++ b/src/reproject.c @@ -59,8 +59,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image, double kx, ky, kz; /* Electron wavevector ("normal" times 1/lambda */ double ux, uy, uz; /* "up" vector */ double rx, ry, rz; /* "right" vector */ - int nrr = 0; - int n = 0; flist = image_feature_list_new(); @@ -168,11 +166,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image, image_add_feature_reflection(flist, x, y, image, reflection->intensity, reflection); - printf("adding %i %i %i\n", - reflection->h, - reflection->k, - reflection->l); - n++; } /* else it's outside the picture somewhere */ @@ -182,8 +175,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image, reflection = reflection->next; - nrr++; - } while ( reflection ); /* Partner features only if the image has a feature list. This allows @@ -193,8 +184,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image, reproject_partner_features(flist, image); } - printf("processed %i, found %i\n", nrr, n); - return flist; } @@ -242,7 +231,6 @@ void reproject_lattice_changed(ControlContext *ctx) { int partnered_measured = 0; reproject_cell_to_lattice(ctx); - printf("%i reflections\n", ctx->cell_lattice->n_reflections); for ( i=0; iimages->n_images; i++ ) { -- cgit v1.2.3