summaryrefslogtreecommitdiff
path: root/dom/quota/ActorsParent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/quota/ActorsParent.cpp')
-rw-r--r--dom/quota/ActorsParent.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp
index c240cbf20..74d57c5db 100644
--- a/dom/quota/ActorsParent.cpp
+++ b/dom/quota/ActorsParent.cpp
@@ -3799,37 +3799,6 @@ QuotaManager::InitializeRepository(PersistenceType aPersistenceType)
return NS_OK;
}
-namespace {
-
-// The Cache API was creating top level morgue directories by accident for
-// a short time in nightly. This unfortunately prevents all storage from
-// working. So recover these profiles by removing these corrupt directories.
-// This should be removed at some point in the future.
-bool
-MaybeRemoveCorruptDirectory(const nsAString& aLeafName, nsIFile* aDir)
-{
-#ifdef NIGHTLY_BUILD
- MOZ_ASSERT(aDir);
-
- if (aLeafName != NS_LITERAL_STRING("morgue")) {
- return false;
- }
-
- NS_WARNING("QuotaManager removing corrupt morgue directory!");
-
- nsresult rv = aDir->Remove(true /* recursive */);
- if (NS_WARN_IF(NS_FAILED(rv))) {
- return false;
- }
-
- return true;
-#else
- return false;
-#endif // NIGHTLY_BUILD
-}
-
-} // namespace
-
nsresult
QuotaManager::InitializeOrigin(PersistenceType aPersistenceType,
const nsACString& aGroup,
@@ -3883,10 +3852,6 @@ QuotaManager::InitializeOrigin(PersistenceType aPersistenceType,
return NS_ERROR_UNEXPECTED;
}
- if (MaybeRemoveCorruptDirectory(leafName, file)) {
- continue;
- }
-
Client::Type clientType;
rv = Client::TypeFromText(leafName, clientType);
if (NS_FAILED(rv)) {
@@ -5981,10 +5946,6 @@ QuotaUsageRequestBase::GetUsageForOrigin(QuotaManager* aQuotaManager,
}
}
- if (MaybeRemoveCorruptDirectory(leafName, file)) {
- continue;
- }
-
Client::Type clientType;
rv = Client::TypeFromText(leafName, clientType);
if (NS_FAILED(rv)) {