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) --- src/crystfel_gui.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 07626dbb..1ee4cff7 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -187,18 +187,6 @@ static int have_running_jobs(struct crystfelproject *proj) } -static int file_exists(const char *filename) -{ - struct stat sb; - - if ( stat(filename, &sb) ) { - return 0; - } else { - return 1; - } -} - - /* Bring the image view up to date after changing the selected image */ void update_imageview(struct crystfelproject *proj) { -- cgit v1.2.3