From 6dbd24ae9e9db48c94dd853fae03945c431fd139 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 22 Feb 2020 19:31:52 -0500 Subject: Issue mcp-graveyard/UXP#1053 - Remove android support from storage/mozStorageConnection.cpp --- storage/mozStorageConnection.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/storage/mozStorageConnection.cpp b/storage/mozStorageConnection.cpp index 10297fca15..e6c3571859 100644 --- a/storage/mozStorageConnection.cpp +++ b/storage/mozStorageConnection.cpp @@ -1955,10 +1955,6 @@ Connection::RemoveProgressHandler(mozIStorageProgressHandler **_oldHandler) NS_IMETHODIMP Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseName) { - // Bug 597215: Disk space is extremely limited on Android - // so don't preallocate space. This is also not effective - // on log structured file systems used by Android devices -#if !defined(ANDROID) && !defined(MOZ_PLATFORM_MAEMO) // Don't preallocate if less than 500MiB is available. int64_t bytesAvailable; nsresult rv = mDatabaseFile->GetDiskSpaceAvailable(&bytesAvailable); @@ -1972,7 +1968,7 @@ Connection::SetGrowthIncrement(int32_t aChunkSize, const nsACString &aDatabaseNa : nullptr, SQLITE_FCNTL_CHUNK_SIZE, &aChunkSize); -#endif + return NS_OK; } -- cgit v1.2.3