summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/sqlite_cache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/storage/sqlite_cache.hpp')
-rw-r--r--src/mbgl/storage/sqlite_cache.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mbgl/storage/sqlite_cache.hpp b/src/mbgl/storage/sqlite_cache.hpp
index 94eeee3d46..fd02765e78 100644
--- a/src/mbgl/storage/sqlite_cache.hpp
+++ b/src/mbgl/storage/sqlite_cache.hpp
@@ -20,6 +20,8 @@ template <typename T> class Thread;
class SQLiteCache : private util::noncopyable {
public:
+ static std::shared_ptr<SQLiteCache> getShared(const std::string &path = ":memory:");
+
SQLiteCache(const std::string &path = ":memory:");
~SQLiteCache();
@@ -35,15 +37,6 @@ public:
private:
const std::unique_ptr<util::Thread<Impl>> thread;
-};
-
-class SharedSQLiteCache : util::noncopyable {
-public:
- static std::shared_ptr<SQLiteCache> get(const std::string &path = ":memory:");
-
-private:
- SharedSQLiteCache() {}
-
static std::weak_ptr<SQLiteCache> masterPtr;
};