diff options
Diffstat (limited to 'Firestore/Source')
-rw-r--r-- | Firestore/Source/Core/FSTFirestoreClient.mm | 1 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBMutationQueue.mm | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBQueryCache.mm | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTLocalStore.h | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTLocalStore.mm | 7 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTMemoryMutationQueue.mm | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTMemoryQueryCache.mm | 4 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTMutationQueue.h | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTQueryCache.h | 3 | ||||
-rw-r--r-- | Firestore/Source/Local/FSTRemoteDocumentCache.h | 3 |
12 files changed, 0 insertions, 39 deletions
diff --git a/Firestore/Source/Core/FSTFirestoreClient.mm b/Firestore/Source/Core/FSTFirestoreClient.mm index 9f0779a..c0d38ca 100644 --- a/Firestore/Source/Core/FSTFirestoreClient.mm +++ b/Firestore/Source/Core/FSTFirestoreClient.mm @@ -241,7 +241,6 @@ NS_ASSUME_NONNULL_BEGIN self->_credentialsProvider->SetUserChangeListener(nullptr); [self.remoteStore shutdown]; - [self.localStore shutdown]; [self.persistence shutdown]; if (completion) { [self.userDispatchQueue dispatchAsync:^{ diff --git a/Firestore/Source/Local/FSTLevelDBMutationQueue.mm b/Firestore/Source/Local/FSTLevelDBMutationQueue.mm index a1e9e4c..29acead 100644 --- a/Firestore/Source/Local/FSTLevelDBMutationQueue.mm +++ b/Firestore/Source/Local/FSTLevelDBMutationQueue.mm @@ -132,9 +132,6 @@ using leveldb::WriteOptions; self.metadata = metadata; } -- (void)shutdown { -} - + (FSTBatchID)loadNextBatchIDFromDB:(std::shared_ptr<DB>)db { // TODO(gsoltis): implement Prev() and SeekToLast() on LevelDbTransaction::Iterator, then port // this to a transaction. diff --git a/Firestore/Source/Local/FSTLevelDBQueryCache.mm b/Firestore/Source/Local/FSTLevelDBQueryCache.mm index dabfff2..aa1ab41 100644 --- a/Firestore/Source/Local/FSTLevelDBQueryCache.mm +++ b/Firestore/Source/Local/FSTLevelDBQueryCache.mm @@ -142,9 +142,6 @@ using leveldb::Status; _db.currentTransaction->Put([FSTLevelDBTargetGlobalKey key], self.metadata); } -- (void)shutdown { -} - - (void)saveQueryData:(FSTQueryData *)queryData { FSTTargetID targetID = queryData.targetID; std::string key = [FSTLevelDBTargetKey keyWithTargetID:targetID]; diff --git a/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm b/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm index 930778d..703fc69 100644 --- a/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm +++ b/Firestore/Source/Local/FSTLevelDBRemoteDocumentCache.mm @@ -57,9 +57,6 @@ using leveldb::Status; return self; } -- (void)shutdown { -} - - (void)addEntry:(FSTMaybeDocument *)document { std::string key = [self remoteDocumentKey:document.key]; _db.currentTransaction->Put(key, [self.serializer encodedMaybeDocument:document]); diff --git a/Firestore/Source/Local/FSTLocalStore.h b/Firestore/Source/Local/FSTLocalStore.h index e2134dc..82402e4 100644 --- a/Firestore/Source/Local/FSTLocalStore.h +++ b/Firestore/Source/Local/FSTLocalStore.h @@ -90,9 +90,6 @@ NS_ASSUME_NONNULL_BEGIN /** Performs any initial startup actions required by the local store. */ - (void)start; -/** Releases any open resources. */ -- (void)shutdown; - /** * Tells the FSTLocalStore that the currently authenticated user has changed. * 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<FSTMutationBatch *> *oldBatches = [self.mutationQueue allMutationBatches]; [self.persistence commitGroup:group]; - [self.mutationQueue shutdown]; [self.garbageCollector removeGarbageSource:self.mutationQueue]; self.mutationQueue = [self.persistence mutationQueueForUser:user]; diff --git a/Firestore/Source/Local/FSTMemoryMutationQueue.mm b/Firestore/Source/Local/FSTMemoryMutationQueue.mm index 5419c8a..8028bb3 100644 --- a/Firestore/Source/Local/FSTMemoryMutationQueue.mm +++ b/Firestore/Source/Local/FSTMemoryMutationQueue.mm @@ -105,9 +105,6 @@ static const NSComparator NumberComparator = ^NSComparisonResult(NSNumber *left, @"highestAcknowledgedBatchID must be less than the nextBatchID"); } -- (void)shutdown { -} - - (BOOL)isEmpty { // If the queue has any entries at all, the first entry must not be a tombstone (otherwise it // would have been removed already). diff --git a/Firestore/Source/Local/FSTMemoryQueryCache.mm b/Firestore/Source/Local/FSTMemoryQueryCache.mm index 5dcf82d..18d14f2 100644 --- a/Firestore/Source/Local/FSTMemoryQueryCache.mm +++ b/Firestore/Source/Local/FSTMemoryQueryCache.mm @@ -61,10 +61,6 @@ NS_ASSUME_NONNULL_BEGIN // Nothing to do. } -- (void)shutdown { - // No resources to release. -} - - (FSTTargetID)highestTargetID { return _highestTargetID; } diff --git a/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm b/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm index 9289e60..75bec8f 100644 --- a/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm +++ b/Firestore/Source/Local/FSTMemoryRemoteDocumentCache.mm @@ -42,9 +42,6 @@ NS_ASSUME_NONNULL_BEGIN return self; } -- (void)shutdown { -} - - (void)addEntry:(FSTMaybeDocument *)document { self.docs = [self.docs dictionaryBySettingObject:document forKey:document.key]; } diff --git a/Firestore/Source/Local/FSTMutationQueue.h b/Firestore/Source/Local/FSTMutationQueue.h index 7a43957..89b1a52 100644 --- a/Firestore/Source/Local/FSTMutationQueue.h +++ b/Firestore/Source/Local/FSTMutationQueue.h @@ -43,9 +43,6 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)start; -/** Shuts this mutation queue down, closing open files, etc. */ -- (void)shutdown; - /** Returns YES if this queue contains no mutation batches. */ - (BOOL)isEmpty; diff --git a/Firestore/Source/Local/FSTQueryCache.h b/Firestore/Source/Local/FSTQueryCache.h index 607ef81..d797d49 100644 --- a/Firestore/Source/Local/FSTQueryCache.h +++ b/Firestore/Source/Local/FSTQueryCache.h @@ -40,9 +40,6 @@ NS_ASSUME_NONNULL_BEGIN /** Starts the query cache up. */ - (void)start; -/** Shuts this cache down, closing open files, etc. */ -- (void)shutdown; - /** * Returns the highest target ID of any query in the cache. Typically called during startup to * seed a target ID generator and avoid collisions with existing queries. If there are no queries diff --git a/Firestore/Source/Local/FSTRemoteDocumentCache.h b/Firestore/Source/Local/FSTRemoteDocumentCache.h index 3605111..2c6d872 100644 --- a/Firestore/Source/Local/FSTRemoteDocumentCache.h +++ b/Firestore/Source/Local/FSTRemoteDocumentCache.h @@ -34,9 +34,6 @@ NS_ASSUME_NONNULL_BEGIN */ @protocol FSTRemoteDocumentCache <NSObject> -/** Shuts this cache down, closing open files, etc. */ -- (void)shutdown; - /** * Adds or replaces an entry in the cache. * |