Skip to content

Commit

Permalink
Minor changes (drop PushPublicKey)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Dec 2, 2024
1 parent d33be3d commit 8dee2da
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import org.xmlpull.v1.XmlPullParser
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
data class ClientPublicKey(
override val type: String? = null,
override val key: String? = null
): PushPublicKey(type, key) {
val type: String? = null,
val key: String? = null
): Property {

companion object {

Expand All @@ -36,4 +36,4 @@ data class ClientPublicKey(

}

}
}
34 changes: 0 additions & 34 deletions src/main/kotlin/at/bitfire/dav4jvm/property/push/PushPublicKey.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ package at.bitfire.dav4jvm.property.push
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlReader
import org.xmlpull.v1.XmlPullParser
import java.net.URI
import java.net.URISyntaxException
import org.xmlpull.v1.XmlPullParser

/**
* Represents a [NS_WEBDAV_PUSH]`:push-resource` property.
Expand Down Expand Up @@ -39,7 +39,7 @@ data class PushResource(
uri = XmlReader(parser).readText()?.let { uri ->
try {
URI(uri)
} catch (e: URISyntaxException) {
} catch (_: URISyntaxException) {
null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import org.xmlpull.v1.XmlPullParser
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
data class ServerPublicKey(
override val type: String? = null,
override val key: String? = null
): PushPublicKey(type, key) {
val type: String? = null,
val key: String? = null
): Property {

companion object {

Expand All @@ -36,4 +36,4 @@ data class ServerPublicKey(

}

}
}

0 comments on commit 8dee2da

Please sign in to comment.