Common: Remove OpenCPPFile().

This commit is contained in:
Unknown W. Brackets 2021-05-09 16:59:30 -07:00
parent 9d8f22efd0
commit f947aa4844
2 changed files with 0 additions and 11 deletions

View File

@ -103,16 +103,6 @@ FILE *OpenCFile(const std::string &filename, const char *mode)
#endif
}
bool OpenCPPFile(std::fstream & stream, const std::string &filename, std::ios::openmode mode)
{
#if defined(_WIN32) && defined(UNICODE) && !defined(__MINGW32__)
stream.open(ConvertUTF8ToWString(filename), mode);
#else
stream.open(filename.c_str(), mode);
#endif
return stream.is_open();
}
#ifdef _WIN32
static bool ResolvePathVista(const std::wstring &path, wchar_t *buf, DWORD bufSize) {
typedef DWORD(WINAPI *getFinalPathNameByHandleW_f)(HANDLE hFile, LPWSTR lpszFilePath, DWORD cchFilePath, DWORD dwFlags);

View File

@ -38,7 +38,6 @@ namespace File {
// Mostly to handle UTF-8 filenames better on Windows.
FILE *OpenCFile(const std::string &filename, const char *mode);
bool OpenCPPFile(std::fstream & stream, const std::string &filename, std::ios::openmode mode);
// Resolves symlinks and similar.
std::string ResolvePath(const std::string &path);