From 908f4903964d82572fff52ba35c0586d9a09f60b Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Sun, 16 Jun 2024 19:07:19 +0300 Subject: [PATCH] Remove unused ddio_RenameFile() --- ddio/ddio.h | 4 ---- ddio/lnxfile.cpp | 10 ---------- ddio/winfile.cpp | 10 ---------- 3 files changed, 24 deletions(-) diff --git a/ddio/ddio.h b/ddio/ddio.h index 8d852246..7f5abdc2 100644 --- a/ddio/ddio.h +++ b/ddio/ddio.h @@ -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); diff --git a/ddio/lnxfile.cpp b/ddio/lnxfile.cpp index ced29557..4683491a 100644 --- a/ddio/lnxfile.cpp +++ b/ddio/lnxfile.cpp @@ -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 diff --git a/ddio/winfile.cpp b/ddio/winfile.cpp index 9cc9b0e3..4a2a3efe 100644 --- a/ddio/winfile.cpp +++ b/ddio/winfile.cpp @@ -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) {