diff --git a/src/tools/pathTools.cpp b/src/tools/pathTools.cpp index a082e33a..ae11dcd0 100644 --- a/src/tools/pathTools.cpp +++ b/src/tools/pathTools.cpp @@ -320,16 +320,6 @@ bool kiwix::fileReadable(const std::string& path) #endif } -bool makeDirectory(const std::string& path) -{ -#ifdef _WIN32 - int status = _wmkdir(Utf8ToWide(path).c_str()); -#else - int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); -#endif - return status == 0; -} - std::string makeTmpDirectory() { #ifdef _WIN32 diff --git a/src/tools/pathTools.h b/src/tools/pathTools.h index 82c2a867..0dc4286b 100644 --- a/src/tools/pathTools.h +++ b/src/tools/pathTools.h @@ -29,7 +29,6 @@ std::wstring Utf8ToWide(const std::string& str); unsigned int getFileSize(const std::string& path); std::string getFileSizeAsString(const std::string& path); -bool makeDirectory(const std::string& path); std::string makeTmpDirectory(); bool copyFile(const std::string& sourcePath, const std::string& destPath); bool writeTextFile(const std::string& path, const std::string& content);