aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-17 16:43:32 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commit513827a44d1ddd395f677a74617b42934ca9bc64 (patch)
treec0ca0b1d14afb8026c9ff4e1f081453f3f3cfed3 /libcrystfel/src/image.c
parent4ad424f132dc3311502567e58b695fecdeb10106 (diff)
Crystals shouldn't own RefLists (part 1)
This is a terrible bit of API. A Crystal contains both the parameters for a calculation (e.g. prediction) and the results. Just look at post-refinement.c for an example of the mess this makes when trying to do calculations. This commit removes the reflection list from the Crystal structure. Future commits in this series will fix the resulting build carnage. This also gets rid of vestigial field pr_dud, and adds initialisers for all (remaining) fields.
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 0789c6a3..9e9af85c 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -366,7 +366,6 @@ void free_all_crystals(struct image *image)
if ( image->crystals == NULL ) return;
for ( i=0; i<image->n_crystals; i++ ) {
Crystal *cr = image->crystals[i];
- reflist_free(crystal_get_reflections(cr));
cell_free(crystal_get_cell(cr));
crystal_free(image->crystals[i]);
}