Prep orphan data cleaner.

This commit is contained in:
Matthew Chen 2018-12-11 14:20:01 -05:00
parent 8ba747916a
commit af3cff3399

View file

@ -497,8 +497,6 @@ typedef void (^OrphanDataBlock)(OWSOrphanData *);
OWSAssertIsOnMainThread();
OWSAssertDebug(databaseConnection);
OWSLogVerbose(@"");
if (!AppReadiness.isAppReady) {
OWSFailDebug(@"can't audit orphan data until app is ready.");
return;
@ -588,8 +586,6 @@ typedef void (^OrphanDataBlock)(OWSOrphanData *);
OWSAssertDebug(databaseConnection);
OWSAssertDebug(orphanData);
OWSLogVerbose(@"");
if (remainingRetries < 1) {
OWSLogInfo(@"Aborting orphan data audit.");
dispatch_async(self.workQueue, ^{
@ -629,8 +625,6 @@ typedef void (^OrphanDataBlock)(OWSOrphanData *);
OWSAssertDebug(databaseConnection);
OWSAssertDebug(orphanData);
OWSLogVerbose(@"");
__block BOOL shouldAbort = NO;
// We need to avoid cleaning up new files that are still in the process of