Skip to content

Commit

Permalink
Delete unused function (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton authored Jun 19, 2023
1 parent b63b6c7 commit 55853eb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/commonMain/kotlin/app/cash/turbine/channel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ internal fun <T> ChannelResult<T>.toEvent(): Event<T>? {
}
}

private fun <T> ChannelResult<T>.unexpectedResult(name: String?, expected: String): Nothing =
unexpectedEvent(name, toEvent(), expected)

private fun unexpectedEvent(name: String?, event: Event<*>?, expected: String): Nothing {
val cause = (event as? Event.Error)?.throwable
val eventAsString = event?.toString() ?: "no items"
Expand Down

0 comments on commit 55853eb

Please sign in to comment.