diff options
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/cache_database_library.mm | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/platform/ios/cache_database_library.mm b/platform/ios/cache_database_library.mm deleted file mode 100644 index 7989e73a4e..0000000000 --- a/platform/ios/cache_database_library.mm +++ /dev/null @@ -1,21 +0,0 @@ -#import <Foundation/Foundation.h> - -#include <mbgl/platform/platform.hpp> - -namespace mbgl { -namespace platform { - -// Returns the path to the default cache database on this system. -std::string defaultCacheDatabase() { - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); - if ([paths count] == 0) { - // Disable the cache if we don't have a location to write. - return ""; - } - - NSString *libraryDirectory = [paths objectAtIndex:0]; - return [[libraryDirectory stringByAppendingPathComponent:@"cache.db"] UTF8String]; -} - -} -} |