Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
milaGGL committed Nov 29, 2023
1 parent 1dd2c49 commit c77cac2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 44 deletions.
42 changes: 0 additions & 42 deletions Firestore/Example/Tests/Integration/API/FIRFirestoreSourceTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -713,46 +713,4 @@ - (void)Demo_addSnapshotListenerWithDefaultListenOptions {
XCTAssertEqual(snapshot.count, 0);
}];
}

//- (void)Demo_addSnapshotListenerWithMetadataChanges {
// FIRCollectionReference *collection = [self.db collectionWithPath:@"cities"];
// FIRQuery *query = [collection queryWhereField:@"state" isEqualTo:@ "CA"];
// FIRSnapshotListenOptions* options = [
// FIRSnapshotListenOptions optionsWithIncludeMetadataChanges:YES
// ];
//
// [query addSnapshotListenerWithOptions:options
// listener:^(FIRQuerySnapshot *snapshot, NSError *error) {
// XCTAssertNil(error);
// XCTAssertEqual(snapshot.count, 0);
// }];
//}
//
//- (void)Demo_addSnapshotListenerFromCache {
// FIRCollectionReference *collection = [self.db collectionWithPath:@"cities"];
// FIRQuery *query = [collection queryWhereField:@"state" isEqualTo:@ "CA"];
// FIRSnapshotListenOptions* options = [
// FIRSnapshotListenOptions optionsWithSource:FIRListenSourceCache
// ];
//
// [query addSnapshotListenerWithOptions:options
// listener:^(FIRQuerySnapshot *snapshot, NSError *error) {
// XCTAssertNil(error);
// XCTAssertEqual(snapshot.count, 0);
// }];
//}
//
//- (void)Demo_addSnapshotListenerFromCacheAndIncludeMetadataChanges {
// FIRCollectionReference *collection = [self.db collectionWithPath:@"cities"];
// FIRQuery *query = [collection queryWhereField:@"state" isEqualTo:@ "CA"];
//
// FIRSnapshotListenOptions *options = [[FIRSnapshotListenOptions alloc]
// initWithSource:FIRListenSourceCache includeMetadataChanges:YES];
//
// [query addSnapshotListenerWithOptions:options
// listener:^(FIRQuerySnapshot *snapshot, NSError *error) {
// XCTAssertNil(error);
// XCTAssertEqual(snapshot.count, 0);
// }];
//}
@end
1 change: 0 additions & 1 deletion Firestore/Source/API/FIRDocumentReference.mm
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ - (void)getDocumentWithSource:(FIRFirestoreSource)source
return [self addSnapshotListenerInternalWithOptions:options listener:listener];
}

// TODO MILA
- (id<FIRListenerRegistration>)addSnapshotListenerWithOptions:(FIRSnapshotListenOptions *)options
listener:(FIRDocumentSnapshotBlock)listener {
ListenOptions listenOptions = ListenOptions::FromIncludeMetadataChanges(false);
Expand Down
1 change: 0 additions & 1 deletion Firestore/Source/API/FIRQuery.mm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ - (void)getDocumentsWithSource:(FIRFirestoreSource)publicSource
return [self addSnapshotListenerInternalWithOptions:options listener:listener];
}

// TODO MILA
- (id<FIRListenerRegistration>)addSnapshotListenerWithOptions:(FIRSnapshotListenOptions *)options
listener:(FIRQuerySnapshotBlock)listener {
auto listenOptions = ListenOptions::FromIncludeMetadataChanges(false);
Expand Down

0 comments on commit c77cac2

Please sign in to comment.