mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Remove dead code.
This commit is contained in:
-5
@@ -26,7 +26,6 @@ import kotlinx.coroutines.flow.StateFlow
|
|||||||
|
|
||||||
class FakeRoomListService : RoomListService {
|
class FakeRoomListService : RoomListService {
|
||||||
private val allRoomSummariesFlow = MutableStateFlow<List<RoomSummary>>(emptyList())
|
private val allRoomSummariesFlow = MutableStateFlow<List<RoomSummary>>(emptyList())
|
||||||
private val inviteRoomSummariesFlow = MutableStateFlow<List<RoomSummary>>(emptyList())
|
|
||||||
private val allRoomsLoadingStateFlow = MutableStateFlow<RoomList.LoadingState>(RoomList.LoadingState.NotLoaded)
|
private val allRoomsLoadingStateFlow = MutableStateFlow<RoomList.LoadingState>(RoomList.LoadingState.NotLoaded)
|
||||||
private val roomListStateFlow = MutableStateFlow<RoomListService.State>(RoomListService.State.Idle)
|
private val roomListStateFlow = MutableStateFlow<RoomListService.State>(RoomListService.State.Idle)
|
||||||
private val syncIndicatorStateFlow = MutableStateFlow<RoomListService.SyncIndicator>(RoomListService.SyncIndicator.Hide)
|
private val syncIndicatorStateFlow = MutableStateFlow<RoomListService.SyncIndicator>(RoomListService.SyncIndicator.Hide)
|
||||||
@@ -35,10 +34,6 @@ class FakeRoomListService : RoomListService {
|
|||||||
allRoomSummariesFlow.emit(roomSummaries)
|
allRoomSummariesFlow.emit(roomSummaries)
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun postInviteRooms(roomSummaries: List<RoomSummary>) {
|
|
||||||
inviteRoomSummariesFlow.emit(roomSummaries)
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun postAllRoomsLoadingState(loadingState: RoomList.LoadingState) {
|
suspend fun postAllRoomsLoadingState(loadingState: RoomList.LoadingState) {
|
||||||
allRoomsLoadingStateFlow.emit(loadingState)
|
allRoomsLoadingStateFlow.emit(loadingState)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user