diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-07-16 13:15:32 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:27 +0300 |
commit | b9e7cc9fbc435ee3a8a952c2b41afba41fa1c7ac (patch) | |
tree | 62970ac0dd191986c083d2625db447dc38cda036 /platform | |
parent | 45faef6be3270c5d7a4fce25d04b06a5308ec8cc (diff) |
Remove deprecated GetIndexFileName from platform
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform.cpp | 16 | ||||
-rw-r--r-- | platform/platform.hpp | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/platform/platform.cpp b/platform/platform.cpp index 194ba444ca..d9253df5d4 100644 --- a/platform/platform.cpp +++ b/platform/platform.cpp @@ -133,22 +133,6 @@ string Platform::DeviceName() const return OMIM_OS_NAME; } -string Platform::WritablePathForCountryIndexes(string const & mwmName) const -{ - string const dir = WritableDir() + mwmName + my::GetNativeSeparator(); - if (!IsFileExistsByFullPath(dir)) - { - if (MkDir(dir) != Platform::ERR_OK) - MYTHROW(Writer::CreateDirException, ("Can't create directory:", dir)); - } - return dir; -} - -string Platform::GetIndexFileName(string const & mwmName, string const & extension) const -{ - return GetPlatform().WritablePathForCountryIndexes(mwmName) + mwmName + extension; -} - void Platform::SetWritableDirForTests(string const & path) { m_writableDir = my::AddSlashIfNeeded(path); diff --git a/platform/platform.hpp b/platform/platform.hpp index f224a6b68d..95e1eb7587 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -91,11 +91,6 @@ public: void SetWritableDirForTests(string const & path); /// @return full path to file in user's writable directory string WritablePathForFile(string const & file) const { return WritableDir() + file; } - /// @return full path to indexes directory for country file. - /// Creates directory if it's not exists. Throw Writer::CreateDirException if can't create. - string WritablePathForCountryIndexes(string const & mwmName) const; - /// @return generate full path to index based on mwmName and index extension - string GetIndexFileName(string const & mwmName, string const & extension) const; /// @return resource dir (on some platforms it's differ from Writable dir) string ResourcesDir() const { return m_resourcesDir; } |