summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-06-07 15:33:40 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-06-12 17:41:16 +0200
commit79394ee47d60ee7db6bb516a0e858adb2e9239d3 (patch)
treeb1b17c283ea402435e9f7887b9e449a72af11a2e /platform
parent4477dd41198ac827781a6bbf50aeb0b1d3a66a45 (diff)
downloadqtlocation-mapboxgl-79394ee47d60ee7db6bb516a0e858adb2e9239d3.tar.gz
[core] remove unused flags from SQLite header
Diffstat (limited to 'platform')
-rw-r--r--platform/default/sqlite3.hpp4
-rw-r--r--platform/qt/src/sqlite3.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/platform/default/sqlite3.hpp b/platform/default/sqlite3.hpp
index 52cc3f8fc5..8686c55666 100644
--- a/platform/default/sqlite3.hpp
+++ b/platform/default/sqlite3.hpp
@@ -14,10 +14,6 @@ enum OpenFlag : int {
ReadOnly = 0x00000001,
ReadWrite = 0x00000002,
Create = 0x00000004,
- NoMutex = 0x00008000,
- FullMutex = 0x00010000,
- SharedCache = 0x00020000,
- PrivateCache = 0x00040000,
};
enum class ResultCode : int {
diff --git a/platform/qt/src/sqlite3.cpp b/platform/qt/src/sqlite3.cpp
index 9617bac6cd..2ca09fd3ad 100644
--- a/platform/qt/src/sqlite3.cpp
+++ b/platform/qt/src/sqlite3.cpp
@@ -113,10 +113,6 @@ mapbox::util::variant<Database, Exception> Database::tryOpen(const std::string &
if (!connectOptions.isEmpty()) connectOptions.append(';');
connectOptions.append("QSQLITE_OPEN_READONLY");
}
- if (flags & OpenFlag::SharedCache) {
- if (!connectOptions.isEmpty()) connectOptions.append(';');
- connectOptions.append("QSQLITE_ENABLE_SHARED_CACHE");
- }
db.setConnectOptions(connectOptions);
db.setDatabaseName(QString(filename.c_str()));