mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
RoomTimelineStyle: Remove useless property.
This commit is contained in:
parent
c7c0519e76
commit
4f071ac502
3 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue