Stop generating deprecated string functions, move to deprecated folder.
This commit is contained in:
@@ -5,17 +5,6 @@ import templates.Family.*
|
||||
fun strings(): List<GenericFunction> {
|
||||
val templates = arrayListOf<GenericFunction>()
|
||||
|
||||
templates add f("appendString(buffer: Appendable, separator: String = \", \", prefix: String = \"\", postfix: String = \"\", limit: Int = -1, truncated: String = \"...\")") {
|
||||
deprecate{"Use joinTo() instead"}
|
||||
returns { "Unit" }
|
||||
exclude(Strings)
|
||||
body {
|
||||
"""
|
||||
joinTo(buffer, separator, prefix, postfix, limit, truncated)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
templates add f("joinTo(buffer: A, separator: String = \", \", prefix: String = \"\", postfix: String = \"\", limit: Int = -1, truncated: String = \"...\")") {
|
||||
doc {
|
||||
"""
|
||||
@@ -62,17 +51,6 @@ fun strings(): List<GenericFunction> {
|
||||
}
|
||||
}
|
||||
|
||||
templates add f("makeString(separator: String = \", \", prefix: String = \"\", postfix: String = \"\", limit: Int = -1, truncated: String = \"...\")") {
|
||||
deprecate{"Use joinToString() instead"}
|
||||
exclude(Strings)
|
||||
returns("String")
|
||||
body {
|
||||
"""
|
||||
return joinToString(separator, prefix, postfix, limit, truncated)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
templates add f("joinToString(separator: String = \", \", prefix: String = \"\", postfix: String = \"\", limit: Int = -1, truncated: String = \"...\")") {
|
||||
doc {
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user