mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
Remove unused ddio_RenameFile()
This commit is contained in:
parent
b53e4a51a0
commit
908f490396
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user