From b126d28c8804fd30ca8934b3987e7a9cd1cfae93 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 19 Apr 2021 15:34:43 +0200 Subject: Move file_exists to utils (and eliminate several duplicates) --- libcrystfel/src/indexers/felix.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libcrystfel/src/indexers') diff --git a/libcrystfel/src/indexers/felix.c b/libcrystfel/src/indexers/felix.c index 89de5f70..a02f146f 100644 --- a/libcrystfel/src/indexers/felix.c +++ b/libcrystfel/src/indexers/felix.c @@ -730,20 +730,6 @@ void felix_cleanup(IndexingPrivate *pp) } -static int file_exists(const char *filename) -{ - struct stat s; - - if ( stat(filename, &s) != 0 ) { - if ( errno == ENOENT ) return 0; - ERROR("Failed to check for %s.\n", filename); - exit(1); - } - - return 1; -} - - const char *felix_probe(UnitCell *cell) { pid_t pid; -- cgit v1.2.3