aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTDocumentSet.mm
diff options
context:
space:
mode:
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;