aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Local/FSTQueryCache.h
diff options
context:
space:
mode:
authorGravatar Greg Soltis <gsoltis@google.com>2018-03-29 08:55:10 -0700
committerGravatar GitHub <noreply@github.com>2018-03-29 08:55:10 -0700
commitd9b2d312d94387f337c95cb442b828a312bbf18c (patch)
tree68a0ca0d3ce1380e9d68496907ca6fca8c40d575 /Firestore/Source/Local/FSTQueryCache.h
parentcb1f65dfcf78a6cfc11915c2c5695fa023cf3e09 (diff)
Remove some usages of FSTWriteGroup (#983)
* FSTMutationQueue no longer needs groups * Remove write group from mutation queue entirely * Remove write group from query cache * Mark groups unused in remote document cache * Drop write group entirely from remote document cache * style * Drop commented-out code * Drop commented-out code
Diffstat (limited to 'Firestore/Source/Local/FSTQueryCache.h')
-rw-r--r--Firestore/Source/Local/FSTQueryCache.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/Firestore/Source/Local/FSTQueryCache.h b/Firestore/Source/Local/FSTQueryCache.h
index 1b72290..607ef81 100644
--- a/Firestore/Source/Local/FSTQueryCache.h
+++ b/Firestore/Source/Local/FSTQueryCache.h
@@ -24,7 +24,6 @@
@class FSTMaybeDocument;
@class FSTQuery;
@class FSTQueryData;
-@class FSTWriteGroup;
@class FSTSnapshotVersion;
NS_ASSUME_NONNULL_BEGIN
@@ -73,8 +72,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param snapshotVersion The new snapshot version.
*/
-- (void)setLastRemoteSnapshotVersion:(FSTSnapshotVersion *)snapshotVersion
- group:(FSTWriteGroup *)group;
+- (void)setLastRemoteSnapshotVersion:(FSTSnapshotVersion *)snapshotVersion;
/**
* Adds an entry in the cache.
@@ -83,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param queryData A new FSTQueryData instance to put in the cache.
*/
-- (void)addQueryData:(FSTQueryData *)queryData group:(FSTWriteGroup *)group;
+- (void)addQueryData:(FSTQueryData *)queryData;
/**
* Updates an entry in the cache.
@@ -92,10 +90,10 @@ NS_ASSUME_NONNULL_BEGIN
* and it will be replaced.
* @param queryData An FSTQueryData instance to replace an existing entry in the cache
*/
-- (void)updateQueryData:(FSTQueryData *)queryData group:(FSTWriteGroup *)group;
+- (void)updateQueryData:(FSTQueryData *)queryData;
/** Removes the cached entry for the given query data (no-op if no entry exists). */
-- (void)removeQueryData:(FSTQueryData *)queryData group:(FSTWriteGroup *)group;
+- (void)removeQueryData:(FSTQueryData *)queryData;
/** Returns the number of targets cached. */
- (int32_t)count;
@@ -109,17 +107,13 @@ NS_ASSUME_NONNULL_BEGIN
- (nullable FSTQueryData *)queryDataForQuery:(FSTQuery *)query;
/** Adds the given document keys to cached query results of the given target ID. */
-- (void)addMatchingKeys:(FSTDocumentKeySet *)keys
- forTargetID:(FSTTargetID)targetID
- group:(FSTWriteGroup *)group;
+- (void)addMatchingKeys:(FSTDocumentKeySet *)keys forTargetID:(FSTTargetID)targetID;
/** Removes the given document keys from the cached query results of the given target ID. */
-- (void)removeMatchingKeys:(FSTDocumentKeySet *)keys
- forTargetID:(FSTTargetID)targetID
- group:(FSTWriteGroup *)group;
+- (void)removeMatchingKeys:(FSTDocumentKeySet *)keys forTargetID:(FSTTargetID)targetID;
/** Removes all the keys in the query results of the given target ID. */
-- (void)removeMatchingKeysForTargetID:(FSTTargetID)targetID group:(FSTWriteGroup *)group;
+- (void)removeMatchingKeysForTargetID:(FSTTargetID)targetID;
- (FSTDocumentKeySet *)matchingKeysForTargetID:(FSTTargetID)targetID;