aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-09-14 11:43:52 +0200
committerThomas White <taw@physics.org>2021-09-17 10:47:09 +0200
commit6482185648e5f9d202a40f1bada7972454f7283b (patch)
tree1656d857ed2b143bfbc33f01ca06c2a8cd26f7c3 /libcrystfel/src/image.c
parentd56cb13bb57bfc39eae2239f37d690bfb82e671d (diff)
Avoid pointless passing of image/event
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 9fc647ab..2250dc42 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -776,18 +776,13 @@ static int image_read_image_data(struct image *image,
return 1;
case DATA_SOURCE_TYPE_HDF5:
- return image_hdf5_read(image, dtempl,
- image->filename, image->ev);
+ return image_hdf5_read(image, dtempl);
case DATA_SOURCE_TYPE_CBF:
- return image_cbf_read(image, dtempl,
- image->filename, image->ev,
- 0);
+ return image_cbf_read(image, dtempl, 0);
case DATA_SOURCE_TYPE_CBFGZ:
- return image_cbf_read(image, dtempl,
- image->filename, image->ev,
- 1);
+ return image_cbf_read(image, dtempl, 1);
case DATA_SOURCE_TYPE_MSGPACK:
return image_msgpack_read(image, dtempl, image->data_block,