Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Dec 3, 2024
1 parent bf306b2 commit cacb809
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ val ContentTypeReactionV2 = ContentTypeIdBuilder.builderFromAuthorityId(
versionMinor = 0,
)

fun getReactionV2Schema(schema: String): FfiReactionSchema {
return when (schema) {
"unicode" -> FfiReactionSchema.UNICODE
"shortcode" -> FfiReactionSchema.SHORTCODE
"custom" -> FfiReactionSchema.CUSTOM
else -> FfiReactionSchema.UNKNOWN
}
}

fun getReactionV2Action(action: String): FfiReactionAction {
return when (action) {
"removed" -> FfiReactionAction.REMOVED
"added" -> FfiReactionAction.ADDED
else -> FfiReactionAction.UNKNOWN
}
}


data class ReactionV2Codec(override var contentType: ContentTypeId = ContentTypeReactionV2) :
ContentCodec<FfiReaction> {

Expand Down

0 comments on commit cacb809

Please sign in to comment.