aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTDocumentSet.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-02-01 07:55:49 -0800
committerGravatar GitHub <noreply@github.com>2018-02-01 07:55:49 -0800
commit515625c47fab947f82d7f8fc8daef885e56a7df6 (patch)
tree2a0eea9158134c3dbaf950953a86e2841e101bfc /Firestore/Source/Model/FSTDocumentSet.mm
parentac3052223465ce654457fec17b34f27de1706e57 (diff)
Remove predecessorKey,Object,Document, etc (#735)
This is dead code. I think it was probably useful in the RTDB because of the way it notified of changes, but we give changes with indexes in Firestore so I think we don't need it.
Diffstat (limited to 'Firestore/Source/Model/FSTDocumentSet.mm')
-rw-r--r--Firestore/Source/Model/FSTDocumentSet.mm10
1 files changed, 0 insertions, 10 deletions
diff --git a/Firestore/Source/Model/FSTDocumentSet.mm b/Firestore/Source/Model/FSTDocumentSet.mm
index c4c0f49..6f44799 100644
--- a/Firestore/Source/Model/FSTDocumentSet.mm
+++ b/Firestore/Source/Model/FSTDocumentSet.mm
@@ -135,16 +135,6 @@ typedef FSTImmutableSortedSet<FSTDocument *> SetType;
return [self.sortedSet lastObject];
}
-- (FSTDocument *_Nullable)predecessorDocumentForKey:(FSTDocumentKey *)key {
- FSTDocument *doc = [self.index objectForKey:key];
- if (!doc) {
- @throw [NSException exceptionWithName:NSInvalidArgumentException
- reason:[NSString stringWithFormat:@"Key %@ does not exist", key]
- userInfo:nil];
- }
- return [self.sortedSet predecessorObject:doc];
-}
-
- (NSUInteger)indexOfKey:(FSTDocumentKey *)key {
FSTDocument *doc = [self.index objectForKey:key];
return doc ? [self.sortedSet indexOfObject:doc] : NSNotFound;