mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Remove dead code.
This commit is contained in:
-24
@@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2026 Element Creations Ltd.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
||||||
* Please see LICENSE files in the repository root for full details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package io.element.android.libraries.matrix.impl.media
|
|
||||||
|
|
||||||
import io.element.android.libraries.matrix.api.timeline.item.event.FormattedBody
|
|
||||||
import org.matrix.rustcomponents.sdk.FormattedBody as RustFormattedBody
|
|
||||||
import org.matrix.rustcomponents.sdk.MessageFormat as RustMessageFormat
|
|
||||||
|
|
||||||
fun FormattedBody.map(): RustFormattedBody = RustFormattedBody(
|
|
||||||
format = format.map(),
|
|
||||||
body = body,
|
|
||||||
)
|
|
||||||
|
|
||||||
private fun io.element.android.libraries.matrix.api.timeline.item.event.MessageFormat.map(): RustMessageFormat {
|
|
||||||
return when (this) {
|
|
||||||
io.element.android.libraries.matrix.api.timeline.item.event.MessageFormat.HTML -> RustMessageFormat.Html
|
|
||||||
io.element.android.libraries.matrix.api.timeline.item.event.MessageFormat.UNKNOWN -> RustMessageFormat.Unknown("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user