ResultWithDiagnostics: remove unused equals and hashCode

They are overridden by sealed data classes
This commit is contained in:
Sergey Rostov
2019-08-16 10:55:34 +03:00
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()
}
/**