mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Remove unused write_empty_file()
This commit is contained in:
parent
9689d45129
commit
c4bbede867
19
file_ops.c
19
file_ops.c
@ -87,25 +87,6 @@ bool write_file(const char *path, const void *data, size_t size)
|
|||||||
return ret;
|
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:
|
* read_generic_file:
|
||||||
* @path : path to file.
|
* @path : path to 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_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,
|
struct string_list *compressed_file_list_new(const char *filename,
|
||||||
const char* ext);
|
const char* ext);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user