From 02bc9da566aa8d81083e5e9114c24d779ace511c Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Wed, 14 Sep 2016 11:37:47 -0700 Subject: [PATCH] Remove unused function (#126) A recent commit removed the declaration for this function in swupd.h, and now the compiler warns about it being unused, so the function can be removed entirely now. Signed-off-by: Patrick McCarty --- src/helpers.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/helpers.c b/src/helpers.c index d471bf2f..40bf276d 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -127,17 +127,6 @@ void unlink_all_staged_content(struct file *file) } } -static FILE *fopen_exclusive(const char *filename) /* no mode, opens for write only */ -{ - int fd; - - fd = open(filename, O_CREAT | O_EXCL | O_RDWR, 00600); - if (fd < 0) { - return NULL; - } - return fdopen(fd, "w"); -} - static int create_required_dirs(void) { int ret = 0;