Skip to content

Commit e083c6d

Browse files
committed
cleanup 2
1 parent d16be8c commit e083c6d

File tree

1 file changed

+0
-11
lines changed
  • frameworks/Kotlin/ktor/ktor/src/main/kotlin/org/jetbrains/ktor/benchmarks

1 file changed

+0
-11
lines changed

frameworks/Kotlin/ktor/ktor/src/main/kotlin/org/jetbrains/ktor/benchmarks/Hello.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ data class World(val id: Int, var randomNumber: Int)
3131
@Serializable
3232
data class Fortune(val id: Int, var message: String)
3333

34-
@Serializable
35-
data class DynamicValue(
36-
@Contextual
37-
val value: Any
38-
)
39-
4034
// Optimized JSON instance with better performance settings
4135
private val json = Json {
4236
prettyPrint = false
@@ -167,11 +161,6 @@ fun Application.main() {
167161

168162
call.respondText(json.encodeToString(result), ContentType.Application.Json)
169163
}
170-
171-
post("/dynamic-map") {
172-
val dynamicMap = call.receive<Map<String, DynamicValue>>()
173-
call.respondText(json.encodeToString(dynamicMap), ContentType.Application.Json)
174-
}
175164
}
176165
}
177166

0 commit comments

Comments
 (0)