Remove some other not needed setData(null) in controllers

This commit is contained in:
ariskotsomitopoulos 2021-12-01 16:03:04 +00:00
parent 7fedcbb998
commit f8f5e7ecd3
9 changed files with 0 additions and 36 deletions

View file

@ -63,10 +63,6 @@ class RoomAliasController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomAliasViewState?) {
data ?: return

View file

@ -42,10 +42,6 @@ class RoomBannedMemberListController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomBannedMemberListViewState?) {
val bannedList = data?.bannedMemberSummaries?.invoke() ?: return
val host = this

View file

@ -49,10 +49,6 @@ class RoomMemberListController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomMemberListViewState?) {
data ?: return
val host = this

View file

@ -34,10 +34,6 @@ class RoomNotificationSettingsController @Inject constructor() : TypedEpoxyContr
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomNotificationSettingsViewState?) {
val host = this
data ?: return

View file

@ -108,10 +108,6 @@ class RoomPermissionsController @Inject constructor(
EditablePermission.UpgradeTheRoom()
)
init {
setData(null)
}
override fun buildModels(data: RoomPermissionsViewState?) {
val host = this
buildProfileSection(

View file

@ -56,10 +56,6 @@ class RoomSettingsController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomSettingsViewState?) {
val roomSummary = data?.roomSummary?.invoke() ?: return
val host = this

View file

@ -43,10 +43,6 @@ class UploadsFileController @Inject constructor(
private var idx = 0
init {
setData(null)
}
override fun buildModels(data: RoomUploadsViewState?) {
data ?: return
val host = this

View file

@ -54,10 +54,6 @@ class UploadsMediaController @Inject constructor(
private val itemSize = dimensionConverter.dpToPx(IMAGE_SIZE_DP)
init {
setData(null)
}
override fun buildModels(data: RoomUploadsViewState?) {
data ?: return
val host = this

View file

@ -50,10 +50,6 @@ class SpacePeopleListController @Inject constructor(
var listener: InteractionListener? = null
init {
setData(null)
}
override fun buildModels(data: RoomMemberListViewState?) {
val host = this
val memberSummaries = data?.roomMemberSummaries?.invoke()