Skip to content

Commit

Permalink
Hash code will be generated by data class
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
  • Loading branch information
ArnyminerZ committed Jul 8, 2024
1 parent 714824d commit e58914a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/src/main/java/at/bitfire/vcard4android/Contact.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ data class Contact(
/* unknownProperties */
)

override fun hashCode(): Int {
return compareFields().sumOf { 29 * 3 + it.hashCode() }
}

override fun equals(other: Any?) =
if (other is Contact)
compareFields().contentDeepEquals(other.compareFields())
Expand Down

0 comments on commit e58914a

Please sign in to comment.