ResultWithDiagnostics: remove unused equals and hashCode
They are overridden by sealed data classes
This commit is contained in:
committed by
Natalia Selezneva
parent
91f39a0ecf
commit
5b48dcca4f
@@ -105,10 +105,6 @@ sealed class ResultWithDiagnostics<out R> {
|
||||
) : ResultWithDiagnostics<Nothing>() {
|
||||
constructor(vararg reports: ScriptDiagnostic) : this(reports.asList())
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean = this === other || (other is ResultWithDiagnostics<*> && this.reports == other.reports)
|
||||
|
||||
override fun hashCode(): Int = reports.hashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user