Skip to content

Commit b6ab3a0

Browse files
committed
remove Equivalent
1 parent 585c525 commit b6ab3a0

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

Firestore/Swift/Source/ExpressionImplementation.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -373,17 +373,6 @@ extension Expression {
373373
func stringReplace(_ find: Expression, with replace: Expression) -> FunctionExpression {
374374
return FunctionExpression(functionName: "string_replace", args: [self, find, replace])
375375
}
376-
377-
// MARK: Equivalence Operations
378-
379-
/// Creates a `BooleanExpr` that returns `true` if this expression is equivalent
380-
/// to the given value.
381-
///
382-
/// - Parameter other: The value to compare against.
383-
/// - Returns: A `BooleanExpr` that can be used in `where` clauses.
384-
func equivalent(_ other: Sendable) -> BooleanExpression {
385-
return BooleanExpression(functionName: "equivalent", args: [self, Helper.sendableToExpr(other)])
386-
}
387376
}
388377

389378
public extension Expression {

Firestore/Swift/Tests/Integration/PipelineTests.swift

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,25 +1700,6 @@ class PipelineIntegrationTests: FSTIntegrationTestCase {
17001700
TestHelper.compare(snapshot: snapshot, expected: expectedResults, enforceOrder: true)
17011701
}
17021702

1703-
// func testEquivalentWorks() async throws {
1704-
// let collRef = collectionRef(withDocuments: [
1705-
// "doc1": ["value": 1, "value2": 1],
1706-
// "doc2": ["value": 1, "value2": 2],
1707-
// "doc3": ["value": NSNull(), "value2": NSNull()],
1708-
// "doc4": ["value": NSNull(), "value2": 1],
1709-
// "doc5": ["value": Double.nan, "value2": Double.nan],
1710-
// "doc6": ["value": Double.nan, "value2": 1],
1711-
// ])
1712-
// let db = collRef.firestore
1713-
//
1714-
// let pipeline = db.pipeline()
1715-
// .collection(collRef.path)
1716-
// .where(Field("value").equivalent(Field("value2")))
1717-
// let snapshot = try await pipeline.execute()
1718-
//
1719-
// XCTAssertEqual(snapshot.results.count, 3)
1720-
// }
1721-
17221703
func testInWorks() async throws {
17231704
let collRef = collectionRef(withDocuments: bookDocs)
17241705
let db = collRef.firestore

0 commit comments

Comments
 (0)