Drop identityEquals from builtins, compiler and tests.

This commit is contained in:
Ilya Gorbunov
2016-01-21 19:40:46 +03:00
parent f5f5a2dcc1
commit 4d5ec9be3f
44 changed files with 66 additions and 185 deletions
-7
View File
@@ -16,13 +16,6 @@
package kotlin
/**
* Returns true if the receiver and the [other] object are the same object instance, or if they
* are both null.
*/
@Deprecated("This function is deprecated, use === instead", ReplaceWith("this === other"))
public fun Any?.identityEquals(other: Any?): Boolean // = this === other
/**
* Returns a string representation of the object. Can be called with a null receiver, in which case
* it returns the string "null".
@@ -1176,15 +1176,5 @@ public abstract class KotlinBuiltIns {
return getNullableAnyType();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// GET FUNCTION
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@NotNull
public FunctionDescriptor getIdentityEquals() {
return first(getBuiltInsPackageFragment().getMemberScope().getContributedFunctions(Name.identifier("identityEquals"),
NoLookupLocation.FROM_BUILTINS));
}
}
@@ -23,7 +23,6 @@ object OperatorNameConventions {
@JvmField val SET_VALUE = Name.identifier("setValue")
@JvmField val EQUALS = Name.identifier("equals")
@JvmField val IDENTITY_EQUALS = Name.identifier("identityEquals")
@JvmField val COMPARE_TO = Name.identifier("compareTo")
@JvmField val CONTAINS = Name.identifier("contains")
@JvmField val INVOKE = Name.identifier("invoke")