aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-hdf5.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-05-05 11:36:22 +0200
committerThomas White <taw@physics.org>2023-05-05 11:51:09 +0200
commitd8e17d6154ce644449ad5979eb6846e9e9816f6e (patch)
treeaae2cc870ca3f7c0e3bcc1a8aa0de0ac4f7b3e38 /libcrystfel/src/image-hdf5.c
parent309b65d75993abbc9804b392117baea3a1101e3a (diff)
Move is_{hdf5,cbf,cbfgz}_file() to image.c
This also improves is_hdf5_file() to use the proper file signature, not just the extension. See 9040220452a9cc02706159c21c78e43b374446cf.
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r--libcrystfel/src/image-hdf5.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index c7c75903..dd9aecee 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -1993,17 +1993,4 @@ char **image_hdf5_expand_frames(const DataTemplate *dtempl,
}
-int is_hdf5_file(const char *filename)
-{
- const char *ext = NULL;
-
- ext = filename_extension(filename, NULL);
- if ( ext == NULL ) return 0;
-
- return ( (strcmp(ext, ".h5") == 0)
- || (strcmp(ext, ".cxi") == 0)
- || (strcmp(ext, ".nx5") == 0) );
-}
-
-
#endif /* HAVE_HDF5 */