remove comments

Co-authored-by: Evgeny <evgeny@poberezkin.com>
This commit is contained in:
Evgeny
2026-08-06 23:04:33 +01:00
committed by GitHub
parent dfd51b4e9a
commit 3ecc93bfec
2 changed files with 0 additions and 4 deletions
@@ -859,8 +859,6 @@ enum ConnectTarget {
func strConnectTarget(_ str: String) -> ConnectTarget? {
let parsedMd = parseSimpleXMarkdown(str)
let links = parsedMd?.filter { $0.format?.isSimplexLink ?? false } ?? []
// showText is set only for a link written as a markdown hyperlink, whose text is the whole
// "[label](link)" source rather than the link - connect via the parsed uri in that case
return if links.count == 1, case let .simplexLink(showText, linkType, simplexUri, smpHosts) = links[0].format {
.link(text: showText != nil ? simplexUri : links[0].text, linkType: linkType, linkText: simplexLinkText(linkType, smpHosts))
} else if links.isEmpty,
@@ -836,8 +836,6 @@ fun strConnectTarget(str: String): ConnectTarget? {
val links = parsedMd.filter { it.format?.isSimplexLink ?: false }
if (links.size == 1) {
val fmt = links[0].format as Format.SimplexLink
// showText is set only for a link written as a markdown hyperlink, whose text is the whole
// "[label](link)" source rather than the link - connect via the parsed uri in that case
val text = if (fmt.showText != null) fmt.simplexUri else links[0].text
return ConnectTarget.Link(text, fmt.linkType, fmt.simplexLinkText)
}