From 2865d5f45f91cc630825c894f7e3445c075e0853 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 May 2023 10:56:10 +0200 Subject: Remove image_write() and image_hdf5_write() This code isn't needed any more, now that we don't simulate images. It never worked very well - although we can read almost any sensible format, writing images that match an arbitrary schema is very difficult. See 41ed47a931e4c162c9a501981b6f19cd725f6e43 and https://gitlab.desy.de/thomas.white/crystfel/-/issues/81 --- libcrystfel/src/image.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'libcrystfel/src/image.c') diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index a0facd8c..1bc9fb52 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -1418,21 +1418,3 @@ void mark_resolution_range_as_bad(struct image *image, } } - - -int image_write(const struct image *image, - const DataTemplate *dtempl, - const char *filename) -{ - if ( is_hdf5_file(filename) ) { - #ifdef HAVE_HDF5 - return image_hdf5_write(image, dtempl, filename); - #else - ERROR("Can't write image - compiled without HDF5\n"); - return 1; - #endif - } - - ERROR("Can only write to HDF5 files.\n"); - return 1; -} -- cgit v1.2.3