aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Util/FSTEventAccumulator.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Example/Tests/Util/FSTEventAccumulator.m')
-rw-r--r--Firestore/Example/Tests/Util/FSTEventAccumulator.m11
1 files changed, 0 insertions, 11 deletions
diff --git a/Firestore/Example/Tests/Util/FSTEventAccumulator.m b/Firestore/Example/Tests/Util/FSTEventAccumulator.m
index 1b1e276..c4c1602 100644
--- a/Firestore/Example/Tests/Util/FSTEventAccumulator.m
+++ b/Firestore/Example/Tests/Util/FSTEventAccumulator.m
@@ -68,7 +68,6 @@ NS_ASSUME_NONNULL_BEGIN
return events[0];
}
-// Override the valueEventHandler property
- (void (^)(id _Nullable, NSError *_Nullable))valueEventHandler {
return ^void(id _Nullable value, NSError *_Nullable error) {
// We can't store nil in the _events array, but these are still interesting to tests so store
@@ -82,16 +81,6 @@ NS_ASSUME_NONNULL_BEGIN
};
}
-// Override the errorEventHandler property
-- (void (^)(NSError *_Nullable))errorEventHandler {
- return ^void(NSError *_Nullable error) {
- @synchronized(self) {
- [_events addObject:[NSNull null]];
- [self checkFulfilled];
- }
- };
-}
-
- (void)checkFulfilled {
if (_events.count >= self.maxEvents) {
[self.expectation fulfill];