From c4bbede86780d1876408378d983007676c8c2a9b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 16 Jan 2015 01:32:54 +0100 Subject: [PATCH] Remove unused write_empty_file() --- file_ops.c | 19 ------------------- file_ops.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/file_ops.c b/file_ops.c index 5c9bebf0dd..6c61ce43c4 100644 --- a/file_ops.c +++ b/file_ops.c @@ -87,25 +87,6 @@ bool write_file(const char *path, const void *data, size_t size) return ret; } -/** - * write_empty_file: - * @path : path to file. - * - * Creates an empty file. - * - * Returns: true (1) on success, false (0) otherwise. - */ -bool write_empty_file(const char *path) -{ - FILE *file = fopen(path, "w"); - if (!file) - return false; - - fclose(file); - - return true; -} - /** * read_generic_file: * @path : path to file. diff --git a/file_ops.h b/file_ops.h index dda768a0e8..a71469b21b 100644 --- a/file_ops.h +++ b/file_ops.h @@ -39,8 +39,6 @@ bool read_file_string(const char *path, char **buf); bool write_file(const char *path, const void *buf, size_t size); -bool write_empty_file(const char *path); - struct string_list *compressed_file_list_new(const char *filename, const char* ext);