From d586f64338231153db216a7eba9a516c4b7bdb53 Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Fri, 3 Jun 2022 14:53:26 +0200 Subject: [PATCH] Removes emit method from DataSource --- .../main/java/im/vector/app/core/utils/DataSource.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/utils/DataSource.kt b/vector/src/main/java/im/vector/app/core/utils/DataSource.kt index f0880bb0f9..60ad91272b 100644 --- a/vector/src/main/java/im/vector/app/core/utils/DataSource.kt +++ b/vector/src/main/java/im/vector/app/core/utils/DataSource.kt @@ -26,8 +26,6 @@ interface DataSource { interface MutableDataSource : DataSource { - suspend fun emit(value: T) - fun post(value: T) } @@ -45,10 +43,6 @@ open class BehaviorDataSource(private val defaultValue: T? = null) : MutableD return mutableFlow } - override suspend fun emit(value: T) { - mutableFlow.emit(value) - } - override fun post(value: T) { mutableFlow.tryEmit(value) } @@ -67,10 +61,6 @@ open class PublishDataSource(bufferSize: Int = 10) : MutableDataSource { return mutableFlow } - override suspend fun emit(value: T) { - mutableFlow.emit(value) - } - override fun post(value: T) { mutableFlow.tryEmit(value) }