Skip to content

Commit

Permalink
Alignment: removing unused kotlin json dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP committed Dec 11, 2024
1 parent 795fbff commit 2f74120
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion zenoh-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ kotlin {
val commonMain by getting {
dependencies {
implementation("commons-net:commons-net:3.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
// implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
}
}
val commonTest by getting {
Expand Down
16 changes: 0 additions & 16 deletions zenoh-java/src/commonMain/kotlin/io/zenoh/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import io.zenoh.exceptions.ZError
import io.zenoh.jni.JNIConfig
import java.io.File
import java.nio.file.Path
import kotlinx.serialization.json.JsonElement

/**
* # Config
Expand Down Expand Up @@ -148,21 +147,6 @@ class Config internal constructor(internal val jniConfig: JNIConfig) {

/**
* Inserts a json5 value associated to the [key] into the Config.
*
* Example:
* ```kotlin
* val config = Config.default()
*
* // ...
* val scouting = """
* {
* multicast: {
* enabled: true,
* }
* }
* """.trimIndent()
* config.insertJson5("scouting", scouting).getOrThrow()
* ```
*/
@Throws(ZError::class)
fun insertJson5(key: String, value: String) {
Expand Down

0 comments on commit 2f74120

Please sign in to comment.