From 28259ef48f1f384c44be6d1333245cba90e44af8 Mon Sep 17 00:00:00 2001 From: Stephenie Harris Date: Thu, 2 May 2019 16:57:26 -0600 Subject: [PATCH] Remove attributedText for the Post Title. --- .../Shared Views/Post Stats/PostStatsTitleCell.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Shared Views/Post Stats/PostStatsTitleCell.swift b/WordPress/Classes/ViewRelated/Stats/Shared Views/Post Stats/PostStatsTitleCell.swift index 3486036f6b0a..e2d5cb6a793b 100644 --- a/WordPress/Classes/ViewRelated/Stats/Shared Views/Post Stats/PostStatsTitleCell.swift +++ b/WordPress/Classes/ViewRelated/Stats/Shared Views/Post Stats/PostStatsTitleCell.swift @@ -9,15 +9,14 @@ class PostStatsTitleCell: UITableViewCell, NibLoadable { @IBOutlet weak var bottomSeparatorLine: UIView! private typealias Style = WPStyleGuide.Stats - private var postTitle: String? private var postURL: URL? private weak var postStatsDelegate: PostStatsDelegate? // MARK: - Configure func configure(postTitle: String, postURL: URL?, postStatsDelegate: PostStatsDelegate? = nil) { - self.postTitle = postTitle self.postURL = postURL + postTitleLabel.text = postTitle self.postStatsDelegate = postStatsDelegate applyStyles() } @@ -31,12 +30,6 @@ private extension PostStatsTitleCell { Style.configureLabelAsPostStatsTitle(titleLabel) Style.configureLabelAsPostTitle(postTitleLabel) Style.configureViewAsSeparator(bottomSeparatorLine) - - guard let postTitle = postTitle else { - return - } - - postTitleLabel.attributedText = Style.highlightString(postTitle, inString: postTitle) } @IBAction func didTapPostTitle(_ sender: UIButton) {