Remove deprecated pairwise function

It was replaced with zipWithNext.
This commit is contained in:
Ilya Gorbunov
2017-11-03 21:35:22 +03:00
parent 329322e268
commit 9305903e6c
12 changed files with 0 additions and 135 deletions
@@ -850,22 +850,6 @@ fun generators(): List<GenericFunction> {
body(CharSequences) { "return chunkedSequence(size) { it.toString() }" }
}
templates add f("pairwise(transform: (a: T, b: T) -> R)") {
deprecate(Deprecation("Use zipWithNext instead", "zipWithNext(transform)"))
since("1.2")
only(Iterables, Sequences, CharSequences)
typeParam("R")
returns("List<R>")
inline(true)
body {
"""
return zipWithNext(transform)
"""
}
inline(false, Sequences)
returns(Sequences) { "Sequence<R>" }
}
templates add f("zipWithNext(transform: (a: T, b: T) -> R)") {
since("1.2")
only(Iterables, Sequences, CharSequences)
@@ -927,17 +911,6 @@ fun generators(): List<GenericFunction> {
}
}
templates add f("pairwise()") {
deprecate(Deprecation("Use zipWithNext instead", "zipWithNext()"))
since("1.2")
only(Iterables, Sequences, CharSequences)
returns("List<Pair<T, T>>")
returns(Sequences) { "Sequence<Pair<T, T>>" }
body {
"return zipWithNext { a, b -> a to b }"
}
}
templates add f("zipWithNext()") {
since("1.2")
only(Iterables, Sequences, CharSequences)