Skip to content

Commit

Permalink
Remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 20, 2023
1 parent dc78608 commit 046c082
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions kotlinpoet/src/commonMain/kotlin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,3 @@ public fun FileSpec.Builder.indentWithSpaces(width: Int = 4): FileSpec.Builder =
* ```
*/
public fun withNameAllocator(block: NamingScope): Unit = NameAllocator().block()

public fun minOf(a: ULong, b: ULong): ULong {
return if (a <= b) a else b
}

@HidesMembers
public fun FunSpec.Builder.addParameter(parameterSpec: ParameterSpec): FunSpec.Builder = apply {

}

//private fun generateListOf() = FunSpec("minOf") {
// addAnn(Suppress("unused"))
// val a by addParameter<Int>()
// val b by addParameter<Int>()
//
// returns<Boolean>()
// addCode("return·if·(%N·<=·%n)·a·else·b", a, b)
//}

0 comments on commit 046c082

Please sign in to comment.