summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-21 19:30:58 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:05 +0100
commit8a1fce547e9ad0bf750418c844c9b23a3ee6d8dd (patch)
treee3f0e8f4b16071667c6a4fdf706740335500dbc6 /platform
parent5503aef6907b1fea74d6bdbe696f02b9f016f752 (diff)
downloadqtlocation-mapboxgl-8a1fce547e9ad0bf750418c844c9b23a3ee6d8dd.tar.gz
rearrange tests and add storage tests
Diffstat (limited to 'platform')
-rw-r--r--platform/android/cache_database_data.cpp13
-rw-r--r--platform/osx/cache_database_application_support.mm31
2 files changed, 0 insertions, 44 deletions
diff --git a/platform/android/cache_database_data.cpp b/platform/android/cache_database_data.cpp
deleted file mode 100644
index 2fefcdc4a3..0000000000
--- a/platform/android/cache_database_data.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <mbgl/platform/platform.hpp>
-#include <mbgl/android/jni.hpp>
-
-namespace mbgl {
-namespace platform {
-
-// Returns the path to the default cache database on this system.
-std::string defaultCacheDatabase() {
- return mbgl::android::cachePath + "/mbgl-cache.db";
-}
-
-}
-}
diff --git a/platform/osx/cache_database_application_support.mm b/platform/osx/cache_database_application_support.mm
deleted file mode 100644
index 974ea537cb..0000000000
--- a/platform/osx/cache_database_application_support.mm
+++ /dev/null
@@ -1,31 +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(NSApplicationSupportDirectory, NSUserDomainMask, YES);
- if ([paths count] == 0) {
- // Disable the cache if we don't have a location to write.
- return "";
- }
-
- NSString *path = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"Mapbox GL"];
-
- if (![[NSFileManager defaultManager] createDirectoryAtPath:path
- withIntermediateDirectories:YES
- attributes:nil
- error:nil]) {
- // Disable the cache if we couldn't create the directory.
- return "";
- }
-
- return [[path stringByAppendingPathComponent:@"cache.db"] UTF8String];
-}
-
-}
-}