Merge pull request #9916 from Dentomologist/fileinfo_constructor_remove_duplication

FileUtil: Remove duplication in FileInfo constructor
This commit is contained in:
JMC47
2021-07-19 15:10:02 -04:00
committed by GitHub

View File

@ -92,12 +92,6 @@ FileInfo::FileInfo(const char* path) : FileInfo(std::string(path))
#else #else
FileInfo::FileInfo(const std::string& path) : FileInfo(path.c_str()) FileInfo::FileInfo(const std::string& path) : FileInfo(path.c_str())
{ {
#ifdef ANDROID
if (IsPathAndroidContent(path))
AndroidContentInit(path);
else
#endif
m_exists = stat(path.c_str(), &m_stat) == 0;
} }
FileInfo::FileInfo(const char* path) FileInfo::FileInfo(const char* path)