Skip to content

Commit c8b0c38

Browse files
committed
Remove unused code
1 parent a364561 commit c8b0c38

File tree

6 files changed

+4
-29
lines changed

6 files changed

+4
-29
lines changed

WordPress/Classes/ViewRelated/Post/PostListCell.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ protocol AbstractPostListCell {
77
}
88

99
final class PostListCell: UITableViewCell, AbstractPostListCell, PostSearchResultCell, Reusable {
10-
var isEnabled = true
11-
1210
// MARK: - Views
1311

1412
private lazy var mainStackView: UIStackView = {

WordPress/Classes/ViewRelated/Post/PostMediaUploadsView.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,6 @@ private struct PostMediaUploadItemView: View {
105105
}
106106
}
107107

108-
struct HostDetailsView: UIViewControllerRepresentable {
109-
let media: Media
110-
111-
func makeUIViewController(context: Context) -> MediaItemViewController {
112-
MediaItemViewController(media: media)
113-
}
114-
115-
func updateUIViewController(_ uiViewController: MediaItemViewController, context: Context) {
116-
// Do nothing
117-
}
118-
}
119-
120108
private var menu: some View {
121109
Menu {
122110
menuItems
@@ -177,7 +165,6 @@ private struct MediaThubmnailImageView: View {
177165
private enum Strings {
178166
static let title = NSLocalizedString("postMediaUploadStatusView.title", value: "Media Uploads", comment: "Title for post media upload status view")
179167
static let empty = NSLocalizedString("postMediaUploadStatusView.noPendingUploads", value: "No pending uploads", comment: "Placeholder text in postMediaUploadStatusView when no uploads remain")
180-
static let close = NSLocalizedString("postMediaUploadStatusView.close", value: "Close", comment: "Close button in postMediaUploadStatusView")
181168
static let retryUpload = NSLocalizedString("postMediaUploadStatusView.retryUpload", value: "Retry Upload", comment: "Retry (single) upload button in postMediaUploadStatusView")
182169
static let cancelUpload = NSLocalizedString("postMediaUploadStatusView.cancelUpload", value: "Cancel Upload", comment: "Cancel (single) upload button in postMediaUploadStatusView")
183170
static let retryUploads = NSLocalizedString("postMediaUploadStatusView.retryUploads", value: "Retry Uploads", comment: "Retry upload button in postMediaUploadStatusView")

WordPress/Classes/ViewRelated/Post/PostNoticePublishSuccessView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ struct PostNoticePublishSuccessView: View {
145145

146146
private enum Strings {
147147
static let title = NSLocalizedString("publishSuccessView.title", value: "Post published!", comment: "Post publish success view: title")
148-
static let trafficSectionTitle = NSLocalizedString("publishSuccessView.trafficSectionTitle", value: "Get more traffic:", comment: "Post publish success view: section 'Get more traffic:' title")
149148
static let view = NSLocalizedString("publishSuccessView.view", value: "View post", comment: "Post publish success view: button 'View post'")
150149
static let share = NSLocalizedString("publishSuccessView.share", value: "Share post", comment: "Post publish success view: button 'Share post'")
151150
static let promoteWithBlaze = NSLocalizedString("publishSuccessView.promoteWithBlaze", value: "Promote with Blaze", comment: "Post publish success view: button 'Promote with Blaze'")

WordPress/Classes/ViewRelated/Post/Prepublishing/PrepublishingSocialAccountsViewController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,6 @@ private extension PrepublishingSocialAccountsViewController {
345345
static let cellImageSize = CGSize(width: 28.0, height: 28.0)
346346

347347
static let tableTopPadding: CGFloat = 16.0
348-
static let minContentHeight: CGFloat = 300.0
349-
static let defaultBottomInset: CGFloat = 34.0
350-
static let additionalBottomInset: CGFloat = 16.0
351348

352349
static let accountCellIdentifier = "AccountCell"
353350
static let messageCellIdentifier = "MessageCell"

WordPress/Classes/ViewRelated/Post/Prepublishing/PrepublishingViewController.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ final class PrepublishingViewController: UIViewController, UITableViewDataSource
4343

4444
private var cancellables: [AnyCancellable] = []
4545

46+
deinit {
47+
mediaPollingTimer?.invalidate()
48+
}
49+
4650
init(post: AbstractPost,
4751
isStandalone: Bool,
4852
completion: @escaping (PrepublishingSheetResult) -> (),
@@ -480,7 +484,6 @@ final class PrepublishingViewController: UIViewController, UITableViewDataSource
480484

481485
fileprivate enum Constants {
482486
static let reuseIdentifier = "wpTableViewCell"
483-
static let nuxButtonInsets = UIEdgeInsets(top: 16, left: 20, bottom: 16, right: 20)
484487
static let analyticsDefaultProperty = ["via": "prepublishing_nudges"]
485488
}
486489
}
@@ -512,13 +515,6 @@ enum PrepublishingIdentifier {
512515
case tags
513516
case categories
514517
case autoSharing
515-
516-
static var defaultIdentifiers: [PrepublishingIdentifier] {
517-
if RemoteFeatureFlag.jetpackSocialImprovements.enabled() {
518-
return [.visibility, .schedule, .tags, .categories, .autoSharing]
519-
}
520-
return [.visibility, .schedule, .tags, .categories]
521-
}
522518
}
523519

524520
extension PrepublishingOption {

WordPress/Classes/ViewRelated/Post/Scheduling/PublishDatePickerViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ private enum Strings {
173173
static let date = NSLocalizedString("publishDatePicker.date", value: "Publish Date", comment: "Post publish date picker title for date cell")
174174
static let immediately = NSLocalizedString("publishDatePicker.immediately", value: "Immediately", comment: "Post publish date picker: selected value placeholder when no date is selected and the post will be published immediately")
175175
static let timeZone = NSLocalizedString("publishDatePicker.timeZone", value: "Time Zone", comment: "Post publish time zone cell title")
176-
static let removePublishDate = NSLocalizedString("publishDatePicker.removePublishDate", value: "Remove Publish Date", comment: "Title for button in publish date picker")
177-
static let selectPublishDate = NSLocalizedString("publishDatePicker.selectPublishDate", value: "Select Publish Date", comment: "Title for button in publish date picker")
178176
static let footerCurrentTimezone = NSLocalizedString("publishDatePicker.footerCurrentTimezone", value: "The date in your current time zone:", comment: "Post publish date picker footer view when the selected date time zone is different from your current time zone; followed by the time in the current time zone.")
179177
}
180178

0 commit comments

Comments
 (0)