aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-09 18:21:58 +0100
committerThomas White <taw@physics.org>2012-03-09 18:21:58 +0100
commit7236d936e381faf32950f1091aa57f240644ac16 (patch)
treed594eb58c91c55138c84921eaf39654e824145b8 /libcrystfel/src/hdf5-file.c
parent4be9287d7ae69bcfee52efed5a108f31c0f40f7e (diff)
Compile libcrystfel with -Wall, fix warnings
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index c212abcb..0310465c 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -317,24 +317,6 @@ static double get_wavelength(struct hdfile *f)
}
-static double get_i0(struct hdfile *f)
-{
- herr_t r;
- hid_t dh;
- double i0;
-
- dh = H5Dopen2(f->fh, "/LCLS/f_11_ENRC", H5P_DEFAULT);
- if ( dh < 0 ) return -1.0;
-
- r = H5Dread(dh, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
- H5P_DEFAULT, &i0);
- H5Dclose(dh);
- if ( r < 0 ) return -1.0;
-
- return i0;
-}
-
-
static void debodge_saturation(struct hdfile *f, struct image *image)
{
hid_t dh, sh;