diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm index 931cb19fa2..b1efe1c197 100644 --- a/platform/platform_mac.mm +++ b/platform/platform_mac.mm @@ -69,12 +69,6 @@ Platform::~Platform() { } -bool Platform::IsFileExistsByFullPath(string const & filePath) -{ - struct stat s; - return stat(filePath.c_str(), &s) == 0; -} - int Platform::CpuCores() const { int mib[2], numCPU = 0; diff --git a/platform/platform_qt.cpp b/platform/platform_qt.cpp index 743f6d350f..fdce4de879 100644 --- a/platform/platform_qt.cpp +++ b/platform/platform_qt.cpp @@ -17,13 +17,6 @@ ModelReader * Platform::GetReader(string const & file) const READER_CHUNK_LOG_SIZE, READER_CHUNK_LOG_COUNT); } -bool Platform::GetFileSizeByFullPath(string const & filePath, uint64_t & size) -{ - QFileInfo f(filePath.c_str()); - size = static_cast(f.size()); - return size != 0; -} - bool Platform::GetFileSizeByName(string const & fileName, uint64_t & size) const { try diff --git a/platform/platform_unix_impl.cpp b/platform/platform_unix_impl.cpp index c7ebdf56e7..c1819a0eee 100644 --- a/platform/platform_unix_impl.cpp +++ b/platform/platform_unix_impl.cpp @@ -6,10 +6,10 @@ #include #include -#ifdef OMIM_OS_ANDROID - #include -#else +#if defined(OMIM_OS_MAC) || defined(OMIM_OS_IPHONE) #include +#else + #include #endif