Remove XType.isAssignableWithoutVariance
This was a duplicate of isAssignableFromWithoutVariance and not
needed. Having `from` in the name is good to clarify the check
direction.
Fixes: 184203522
Test: existing tests
Change-Id: I6fbffb859cb1527184f9fe1e02d954b2f696f27c
diff --git a/room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/XType.kt b/room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/XType.kt
index 52388ed..bec9add 100644
--- a/room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/XType.kt
+++ b/room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/XType.kt
@@ -71,7 +71,8 @@
fun isAssignableFrom(other: XType): Boolean
/**
- * Returns `true` if this type can be assigned from [other] while ignoring the type variance.
+ * Returns `true` if this can be assigned from an instance of [other] without checking for
+ * variance.
*/
fun isAssignableFromWithoutVariance(other: XType): Boolean {
return isAssignableWithoutVariance(other, this)
@@ -123,14 +124,6 @@
fun extendsBoundOrSelf(): XType = extendsBound() ?: this
/**
- * Returns `true` if this can be assigned from an instance of [other] without checking for
- * variance.
- */
- fun isAssignableWithoutVariance(other: XType): Boolean {
- return isAssignableWithoutVariance(other, this)
- }
-
- /**
* If this is a wildcard with an extends bound, returns that bounded typed.
*/
fun extendsBound(): XType?