From 0376de08f42d774abc8f90fc438f7bf0e69691d1 Mon Sep 17 00:00:00 2001 From: ganfra Date: Fri, 22 Nov 2019 12:30:54 +0100 Subject: [PATCH] Clean files --- .../vector/matrix/android/api/session/room/timeline/Timeline.kt | 1 - .../vector/matrix/android/internal/database/query/ReadQueries.kt | 1 - .../android/internal/session/room/read/SetReadMarkersTask.kt | 1 - .../java/im/vector/riotx/core/ui/views/JumpToReadMarkerView.kt | 1 - .../riotx/features/home/room/detail/RoomDetailViewModel.kt | 1 - .../home/room/detail/timeline/TimelineEventController.kt | 1 - .../riotx/features/home/room/detail/timeline/item/NoticeItem.kt | 1 - 7 files changed, 7 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/timeline/Timeline.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/timeline/Timeline.kt index a71f5b7479..b55c830c43 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/timeline/Timeline.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/timeline/Timeline.kt @@ -122,5 +122,4 @@ interface Timeline { */ BACKWARDS } - } diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/query/ReadQueries.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/query/ReadQueries.kt index f1045cdb36..c214886ec8 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/query/ReadQueries.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/query/ReadQueries.kt @@ -71,4 +71,3 @@ internal fun isReadMarkerMoreRecent(monarchy: Monarchy, eventToCheckIndex <= readMarkerIndex } } - diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/read/SetReadMarkersTask.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/read/SetReadMarkersTask.kt index 83d12d0bae..b9dca748cb 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/read/SetReadMarkersTask.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/read/SetReadMarkersTask.kt @@ -18,7 +18,6 @@ package im.vector.matrix.android.internal.session.room.read import com.zhuinden.monarchy.Monarchy import im.vector.matrix.android.api.session.events.model.LocalEcho -import im.vector.matrix.android.internal.database.model.ReadMarkerEntity import im.vector.matrix.android.internal.database.model.RoomSummaryEntity import im.vector.matrix.android.internal.database.model.TimelineEventEntity import im.vector.matrix.android.internal.database.query.* diff --git a/vector/src/main/java/im/vector/riotx/core/ui/views/JumpToReadMarkerView.kt b/vector/src/main/java/im/vector/riotx/core/ui/views/JumpToReadMarkerView.kt index 5ba482837e..b2adde449a 100644 --- a/vector/src/main/java/im/vector/riotx/core/ui/views/JumpToReadMarkerView.kt +++ b/vector/src/main/java/im/vector/riotx/core/ui/views/JumpToReadMarkerView.kt @@ -23,7 +23,6 @@ import android.util.AttributeSet import android.view.View import android.widget.RelativeLayout import androidx.core.content.ContextCompat -import androidx.core.view.isInvisible import im.vector.riotx.R import kotlinx.android.synthetic.main.view_jump_to_read_marker.view.* diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt index 2dab9264e5..642bce3319 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt @@ -829,7 +829,6 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro return UnreadState.HasNoUnread } - private fun observeUnreadState() { selectSubscribe(RoomDetailViewState::unreadState) { Timber.v("Unread state: $it") diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/TimelineEventController.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/TimelineEventController.kt index 503e01e5f8..326e19c431 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/TimelineEventController.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/TimelineEventController.kt @@ -349,7 +349,6 @@ class TimelineEventController @Inject constructor(private val dateFormatter: Vec ) { fun shouldTriggerBuild(): Boolean { return mergedHeaderModel != null || formattedDayModel != null - } } } diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/item/NoticeItem.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/item/NoticeItem.kt index 804990cc5c..05dedcfa22 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/item/NoticeItem.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/item/NoticeItem.kt @@ -36,7 +36,6 @@ abstract class NoticeItem : BaseEventItem() { attributes.readReceiptsCallback?.onReadReceiptsClicked(attributes.informationData.readReceipts) }) - override fun bind(holder: Holder) { super.bind(holder) holder.noticeTextView.text = attributes.noticeText