Remove unused write_empty_file()

This commit is contained in:
twinaphex 2015-01-16 01:32:54 +01:00
parent 9689d45129
commit c4bbede867
2 changed files with 0 additions and 21 deletions

View File

@ -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.

View File

@ -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);