Remove unneeded suppressions

This commit is contained in:
Ilya Gorbunov
2017-04-14 17:37:29 +03:00
parent 8f452ed046
commit f22375601b
7 changed files with 2 additions and 13 deletions
@@ -1202,7 +1202,6 @@ public inline fun <T, K> Iterable<T>.groupingBy(crossinline keySelector: (T) ->
* Returns a list containing the results of applying the given [transform] function
* to each element in the original collection.
*/
@Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE")
public inline fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R> {
return mapTo(ArrayList<R>(collectionSizeOrDefault(10)), transform)
}
@@ -1213,7 +1212,6 @@ public inline fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R> {
* @param [transform] function that takes the index of an element and the element itself
* and returns the result of the transform applied to the element.
*/
@Suppress("NON_PUBLIC_CALL_FROM_PUBLIC_INLINE")
public inline fun <T, R> Iterable<T>.mapIndexed(transform: (index: Int, T) -> R): List<R> {
return mapIndexedTo(ArrayList<R>(collectionSizeOrDefault(10)), transform)
}