diff options
author | Gil <mcg@google.com> | 2018-02-01 07:55:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 07:55:49 -0800 |
commit | 515625c47fab947f82d7f8fc8daef885e56a7df6 (patch) | |
tree | 2a0eea9158134c3dbaf950953a86e2841e101bfc /Firestore/third_party/Immutable/FSTArraySortedDictionary.m | |
parent | ac3052223465ce654457fec17b34f27de1706e57 (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/third_party/Immutable/FSTArraySortedDictionary.m')
-rw-r--r-- | Firestore/third_party/Immutable/FSTArraySortedDictionary.m | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Firestore/third_party/Immutable/FSTArraySortedDictionary.m b/Firestore/third_party/Immutable/FSTArraySortedDictionary.m index ad1d68a..e9325a7 100644 --- a/Firestore/third_party/Immutable/FSTArraySortedDictionary.m +++ b/Firestore/third_party/Immutable/FSTArraySortedDictionary.m @@ -142,19 +142,6 @@ NS_ASSUME_NONNULL_BEGIN } } -- (nullable id)predecessorKey:(id)key { - NSInteger pos = [self findKey:key]; - if (pos == NSNotFound) { - [NSException raise:NSInternalInconsistencyException - format:@"Can't get predecessor key for non-existent key"]; - return nil; - } else if (pos == 0) { - return nil; - } else { - return self.keys[pos - 1]; - } -} - - (NSUInteger)indexOfKey:(id)key { return [self findKey:key]; } |