summaryrefslogtreecommitdiffstats
path: root/storage/mozStorageConnection.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-05-06 10:28:50 -0400
committerMoonchild <moonchild@palemoon.org>2020-05-20 13:47:24 +0000
commit938e6204efb8f47f8426aeb114c41d333e696d1a (patch)
tree545b2550f60981e31e5212f1ffd60ad88974fe71 /storage/mozStorageConnection.cpp
parent16aaa21930e316a8fb870a2b300b4c1f0899fb10 (diff)
downloadUXP-938e6204efb8f47f8426aeb114c41d333e696d1a.tar
UXP-938e6204efb8f47f8426aeb114c41d333e696d1a.tar.gz
UXP-938e6204efb8f47f8426aeb114c41d333e696d1a.tar.lz
UXP-938e6204efb8f47f8426aeb114c41d333e696d1a.tar.xz
UXP-938e6204efb8f47f8426aeb114c41d333e696d1a.zip
Issue #21 - Remove TelemertyVFS
This reverts m-c Bug 668378 and completely removes Telemetry SQLite IO. As a bonus this fixes a potential crash in newer SQLite versions without the need for updating this useless telemetry shim.
Diffstat (limited to 'storage/mozStorageConnection.cpp')
-rw-r--r--storage/mozStorageConnection.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp
index e6c357185..40a71c28b 100644
--- a/storage/mozStorageConnection.cpp
+++ b/storage/mozStorageConnection.cpp
@@ -1991,10 +1991,6 @@ Connection::EnableModule(const nsACString& aModuleName)
return NS_ERROR_FAILURE;
}
-// Implemented in TelemetryVFS.cpp
-already_AddRefed<QuotaObject>
-GetQuotaObjectForFile(sqlite3_file *pFile);
-
NS_IMETHODIMP
Connection::GetQuotaObjects(QuotaObject** aDatabaseQuotaObject,
QuotaObject** aJournalQuotaObject)
@@ -2015,8 +2011,6 @@ Connection::GetQuotaObjects(QuotaObject** aDatabaseQuotaObject,
return convertResultCode(srv);
}
- RefPtr<QuotaObject> databaseQuotaObject = GetQuotaObjectForFile(file);
-
srv = ::sqlite3_file_control(mDBConn,
nullptr,
SQLITE_FCNTL_JOURNAL_POINTER,
@@ -2025,10 +2019,6 @@ Connection::GetQuotaObjects(QuotaObject** aDatabaseQuotaObject,
return convertResultCode(srv);
}
- RefPtr<QuotaObject> journalQuotaObject = GetQuotaObjectForFile(file);
-
- databaseQuotaObject.forget(aDatabaseQuotaObject);
- journalQuotaObject.forget(aJournalQuotaObject);
return NS_OK;
}