RoomTimelineStyle: Remove useless property.

This commit is contained in:
SBiOSoftWhare 2022-02-09 16:34:05 +01:00
parent c7c0519e76
commit 4f071ac502
3 changed files with 1 additions and 10 deletions

View file

@ -34,8 +34,6 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
let cellDecorator: RoomTimelineCellDecorator
let useVerticalWhiteSpaceForText: Bool
// MARK: - Setup
init(theme: Theme) {
@ -44,7 +42,6 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
self.cellLayoutUpdater = BubbleRoomCellLayoutUpdater(theme: theme)
self.cellProvider = BubbleRoomTimelineCellProvider()
self.cellDecorator = BubbleRoomTimelineCellDecorator()
self.useVerticalWhiteSpaceForText = false
}
// MARK: - Public

View file

@ -34,8 +34,6 @@ class PlainRoomTimelineStyle: RoomTimelineStyle {
let cellDecorator: RoomTimelineCellDecorator
let useVerticalWhiteSpaceForText: Bool
// MARK: - Setup
init(theme: Theme) {
@ -44,7 +42,6 @@ class PlainRoomTimelineStyle: RoomTimelineStyle {
self.cellLayoutUpdater = nil
self.cellProvider = PlainRoomTimelineCellProvider()
self.cellDecorator = PlainRoomTimelineCellDecorator()
self.useVerticalWhiteSpaceForText = true
}
// MARK: - Methods

View file

@ -35,9 +35,6 @@ protocol RoomTimelineStyle: Themable {
/// Handle cell decorations (reactions, read receipts, URL preview, )
var cellDecorator: RoomTimelineCellDecorator { get }
/// Indicate true to make RoomBubbleCellData use vertical spaces for the attributedText
var useVerticalWhiteSpaceForText: Bool { get }
// MARK: - Methods
/// Indicate to merge or not event in timeline