[FIR] Remove equality by fir from symbols

This commit is contained in:
Dmitriy Novozhilov
2020-02-10 10:32:28 +03:00
parent c79fd61dba
commit 4b6c2f7a65
2 changed files with 0 additions and 13 deletions
@@ -15,11 +15,6 @@ sealed class FirClassLikeSymbol<D>(
val classId: ClassId
) : FirClassifierSymbol<D>() where D : FirClassLikeDeclaration<D>, D : FirSymbolOwner<D> {
abstract override fun toLookupTag(): ConeClassLikeLookupTag
override fun equals(other: Any?): Boolean =
other is FirClassLikeSymbol<*> && fir == other.fir
override fun hashCode(): Int = fir.hashCode()
}
sealed class FirClassSymbol<C : FirClass<C>>(classId: ClassId) : FirClassLikeSymbol<C>(classId) {
@@ -17,13 +17,5 @@ class FirTypeParameterSymbol : FirClassifierSymbol<FirTypeParameter>() {
private val lookupTag = ConeTypeParameterLookupTag(this)
override fun toLookupTag(): ConeTypeParameterLookupTag = lookupTag
override fun equals(other: Any?): Boolean {
return other is FirTypeParameterSymbol && fir == other.fir
}
override fun hashCode(): Int {
return fir.hashCode()
}
}