From 861ad89de920553ed4f25a4754ee986c9aec9162 Mon Sep 17 00:00:00 2001 From: Greg Soltis Date: Thu, 29 Mar 2018 10:00:01 -0700 Subject: Remove unused shutdown methods (#993) * Drop mutation queue shutdown * Drop query cache shutdown * Drop remote document cache shutdown * Drop local store shutdown * drop newline --- Firestore/Source/Local/FSTLocalStore.mm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Firestore/Source/Local/FSTLocalStore.mm') diff --git a/Firestore/Source/Local/FSTLocalStore.mm b/Firestore/Source/Local/FSTLocalStore.mm index a0fb5cb..74eab48 100644 --- a/Firestore/Source/Local/FSTLocalStore.mm +++ b/Firestore/Source/Local/FSTLocalStore.mm @@ -164,19 +164,12 @@ NS_ASSUME_NONNULL_BEGIN self.listenSequence = [[FSTListenSequence alloc] initStartingAfter:sequenceNumber]; } -- (void)shutdown { - [self.mutationQueue shutdown]; - [self.remoteDocumentCache shutdown]; - [self.queryCache shutdown]; -} - - (FSTMaybeDocumentDictionary *)userDidChange:(const User &)user { // Swap out the mutation queue, grabbing the pending mutation batches before and after. FSTWriteGroup *group = [self.persistence startGroupWithAction:@"OldBatches"]; NSArray *oldBatches = [self.mutationQueue allMutationBatches]; [self.persistence commitGroup:group]; - [self.mutationQueue shutdown]; [self.garbageCollector removeGarbageSource:self.mutationQueue]; self.mutationQueue = [self.persistence mutationQueueForUser:user]; -- cgit v1.2.3