Bug 1621916 - Remove unnecessary local variables; r=dom-workers-and-storage-reviewers,sg

Depends on D77069

Differential Revision: https://phabricator.services.mozilla.com/D77070
This commit is contained in:
Jan Varga 2020-05-27 14:44:17 +00:00
Родитель 7d0c7ae8e0
Коммит e51ae4f931
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -17272,8 +17272,6 @@ nsresult QuotaClient::InitOrigin(PersistenceType aPersistenceType,
}
}
const auto sqliteSuffix = kSQLiteSuffix;
for (const auto& databaseEntry : databaseFilenames) {
if (aCanceled) {
break;
@ -17302,7 +17300,7 @@ nsresult QuotaClient::InitOrigin(PersistenceType aPersistenceType,
return rv;
}
rv = databaseFile->Append(databaseFilename + sqliteSuffix);
rv = databaseFile->Append(databaseFilename + kSQLiteSuffix);
if (NS_WARN_IF(NS_FAILED(rv))) {
REPORT_TELEMETRY_INIT_ERR(kQuotaExternalError, IDB_Append2);
return rv;
@ -17661,8 +17659,6 @@ nsresult QuotaClient::GetDatabaseFilenames(
return rv;
}
const auto sqliteSuffix = kSQLiteSuffix;
nsCOMPtr<nsIFile> file;
while (NS_SUCCEEDED((rv = entries->GetNextFile(getter_AddRefs(file)))) &&
file && !aCanceled) {
@ -17717,7 +17713,7 @@ nsresult QuotaClient::GetDatabaseFilenames(
}
nsDependentSubstring leafNameBase;
if (!GetFilenameBase(leafName, sqliteSuffix, leafNameBase)) {
if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {
nsString path;
MOZ_ALWAYS_SUCCEEDS(file->GetPath(path));
MOZ_ASSERT(!path.IsEmpty());