From 4d2c405aea79cc57406c5aa1e53cef88c72c0611 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 6 Nov 2023 20:45:53 -0500 Subject: [PATCH] Removes unnecessary methods --- .../com/vitorpamplona/amethyst/model/Note.kt | 49 ------------------- 1 file changed, 49 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt index 0efcf9be5..199568c3b 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt @@ -446,55 +446,6 @@ open class Note(val idHex: String) { } } - fun publicZapAuthors(): Set { - // Zaps who the requester was the user - return zaps.mapNotNull { - it.key.author - }.toSet() - } - - fun publicZapAuthorHexes(): Set { - // Zaps who the requester was the user - return zaps.mapNotNull { - it.key.author?.pubkeyHex - }.toSet() - } - - fun reactionAuthors(): Set { - // Zaps who the requester was the user - return reactions.values.map { - it.mapNotNull { it.author } - }.flatten().toSet() - } - - fun reactionAuthorHexes(): Set { - // Zaps who the requester was the user - return reactions.values.map { - it.mapNotNull { it.author?.pubkeyHex } - }.flatten().toSet() - } - - fun replyAuthorHexes(): Set { - // Zaps who the requester was the user - return replies.mapNotNull { - it.author?.pubkeyHex - }.toSet() - } - - fun replyAuthors(): Set { - // Zaps who the requester was the user - return replies.mapNotNull { - it.author - }.toSet() - } - - fun boostAuthors(): Set { - // Zaps who the requester was the user - return boosts.mapNotNull { - it.author - }.toSet() - } - fun getReactionBy(user: User): String? { return reactions.firstNotNullOfOrNull { if (it.value.any { it.author?.pubkeyHex == user.pubkeyHex }) {