Remove unused ddio_RenameFile()

This commit is contained in:
Azamat H. Hackimov 2024-06-16 19:07:19 +03:00
parent b53e4a51a0
commit 908f490396
3 changed files with 0 additions and 24 deletions

View File

@ -402,10 +402,6 @@ bool ddio_GetFullPath(char *full_path, const char *rel_path);
// Returns TRUE if successful, FALSE if an error
bool ddio_GetTempFileName(const char *basedir, const char *prefix, char *filename);
// Renames file
// Returns true on success or false on an error
bool ddio_RenameFile(char *oldfile, char *newfile);
// Give a volume label to look for, and if it's found returns a path
// If it isn't found, return NULL
const char *ddio_GetCDDrive(const char *vol);

View File

@ -691,16 +691,6 @@ bool ddio_GetFullPath(char *full_path, const char *rel_path) {
return 1;
}
// Renames file
// Returns true on success or false on an error
bool ddio_RenameFile(char *oldfile, char *newfile) {
int rcode = rename(oldfile, newfile);
if (!rcode)
return true;
else
return false;
}
// Generates a temporary filename based on the prefix, and basedir
// Parameters:
// basedir - directory to put the files

View File

@ -556,16 +556,6 @@ bool ddio_GetFullPath(char *full_path, const char *rel_path) {
return 1;
}
// Renames file
// Returns true on success or false on an error
bool ddio_RenameFile(char *oldfile, char *newfile) {
int rcode = rename(oldfile, newfile);
if (!rcode)
return true;
else
return false;
}
// Give a volume label to look for, and if it's found returns a path
// If it isn't found, return NULL (used to return "")
const char *ddio_GetCDDrive(const char *vol) {