aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-04-19 15:34:43 +0200
committerThomas White <taw@physics.org>2021-04-19 15:34:43 +0200
commitb126d28c8804fd30ca8934b3987e7a9cd1cfae93 (patch)
tree05547af18211da771e129f8f6f95114b9eb97af8 /src
parent1b81067618def8e2b675faaa297df0a55fcb4e17 (diff)
Move file_exists to utils (and eliminate several duplicates)
Diffstat (limited to 'src')
-rw-r--r--src/crystfel_gui.c12
1 files changed, 0 insertions, 12 deletions
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)
{