aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-05-31 23:41:10 -0700
committerThomas White <taw@bitwiz.org.uk>2013-05-31 23:41:10 -0700
commitaa9c09192cdd9d0d48857969a37400cfd85403e2 (patch)
tree21c96816d01b92d8e82a832070d2d2540edbb977 /libcrystfel
parentfe4e9e0601df58a743952269ecf57333f7efdc33 (diff)
Remove duplicate (and incorrect) box boundary check
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/integration.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index bcffa617..9e22a542 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -1135,11 +1135,6 @@ static void measure_all_intensities(IntegrationMethod meth, RefList *list,
cfs = (fid_fs-p->min_fs) - ic.halfw;
css = (fid_ss-p->min_ss) - ic.halfw;
- if ( (cfs + ic.w >= p->w) || (css + ic.w >= p->h ) ) {
- continue;
- }
- if ( (cfs < 0) || (css < 0 ) ) continue;
-
bx = add_box(&ic);
bx->refl = refl;
bx->cfs = cfs;
@@ -1582,11 +1577,6 @@ static void integrate_rings(IntegrationMethod meth, Crystal *cr,
cfs = (fid_fs-p->min_fs) - ic.halfw;
css = (fid_ss-p->min_ss) - ic.halfw;
- if ( (cfs + ic.w >= p->w) || (css + ic.w >= p->h ) ) {
- continue;
- }
- if ( (cfs < 0) || (css < 0 ) ) continue;
-
bx = add_box(&ic);
bx->refl = refl;
bx->cfs = cfs;