aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-29 11:04:42 +0200
committerThomas White <taw@physics.org>2010-03-29 11:04:42 +0200
commitf1f00b684cc6858ad62bbaf07f22f238a33138f9 (patch)
tree42e3a3a3e5f28f9bda12f0a0603508de035f17fc /src
parent119207062fb4a2a41d8ee48fdd7458fc9cf6a30c (diff)
Remove bounds check - this is handled by integrate_peak()
Diffstat (limited to 'src')
-rw-r--r--src/peaks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 23f13e61..4afd0129 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -404,12 +404,6 @@ void output_intensities(struct image *image, UnitCell *cell)
float x, y, intensity;
- /* Bounds check */
- if ( hits[i].x + 3 >= image->width ) continue;
- if ( hits[i].x - 3 < 0 ) continue;
- if ( hits[i].y + 3 >= image->height ) continue;
- if ( hits[i].y - 3 < 0 ) continue;
-
integrate_peak(image, hits[i].x, hits[i].y, &x, &y, &intensity);
/* Write h,k,l, integrated intensity and centroid coordinates */