aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-02 16:42:15 +0200
committerThomas White <taw@physics.org>2020-09-02 16:42:15 +0200
commitf5b3c4db36fabb2c4482bb512fb9a8f1adde6411 (patch)
tree859ec077cc96b35d6c4c35af0e277df236ce0f71 /libcrystfel
parent4086b3fd5d5baa1003f2b60364aad57b0f5aa47a (diff)
Get rid of STREAM_IMAGE_DATA
No longer needed, and didn't fit very well in the first place.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c9
-rw-r--r--libcrystfel/src/stream.h3
2 files changed, 1 insertions, 11 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index f4f757f3..e4c3b333 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -991,14 +991,7 @@ struct image *stream_read_chunk(Stream *st, StreamFlags srf)
if ( have_filename && have_ev ) {
/* Success */
create_detgeom(image, st->dtempl);
- if ( srf & STREAM_IMAGE_DATA ) {
- image_read_image_data(image,
- st->dtempl,
- image->filename,
- image->ev);
- } else {
- image_set_zero_data(image, st->dtempl);
- }
+ image_set_zero_data(image, st->dtempl);
image_set_zero_mask(image, st->dtempl);
return image;
}
diff --git a/libcrystfel/src/stream.h b/libcrystfel/src/stream.h
index 7bb1b6ab..9f19e524 100644
--- a/libcrystfel/src/stream.h
+++ b/libcrystfel/src/stream.h
@@ -75,9 +75,6 @@ typedef enum {
/** Read the peak search results */
STREAM_PEAKS = 4,
- /** Read the image data */
- STREAM_IMAGE_DATA = 16,
-
} StreamFlags;
#ifdef __cplusplus