Skip to content

Commit e8705fe

Browse files
committed
Remove unused AbstractChannel.describeSendConflated
1 parent 3bb3e55 commit e8705fe

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

kotlinx-coroutines-core/common/src/channels/AbstractChannel.kt

-16
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,6 @@ internal abstract class AbstractSendChannel<E> : SendChannel<E> {
122122
}
123123
}
124124

125-
/**
126-
* @suppress **This is unstable API and it is subject to change.**
127-
*/
128-
protected fun describeSendConflated(element: E): AddLastDesc<*> = SendConflatedDesc(queue, element)
129-
130-
private class SendConflatedDesc<E>(
131-
queue: LockFreeLinkedListHead,
132-
element: E
133-
) : SendBufferedDesc<E>(queue, element) {
134-
override fun finishOnSuccess(affected: LockFreeLinkedListNode, next: LockFreeLinkedListNode) {
135-
super.finishOnSuccess(affected, next)
136-
// remove previous SendBuffered
137-
(affected as? SendBuffered<*>)?.remove()
138-
}
139-
}
140-
141125
// ------ SendChannel ------
142126

143127
public final override val isClosedForSend: Boolean get() = closedForSend != null

0 commit comments

Comments
 (0)