From c4db4afcdbb9c0072aab04405271aec6220ece44 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Mon, 22 May 2023 14:13:40 +0200 Subject: [PATCH] Kill some log-messages along the way (IOS-157) --- .../View/TableviewCell/StatusTableViewCell+ViewModel.swift | 1 - .../Share/View/TableviewCell/StatusTableViewCell.swift | 7 ------- 2 files changed, 8 deletions(-) diff --git a/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell+ViewModel.swift b/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell+ViewModel.swift index 2702d726b..c3455fd0e 100644 --- a/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell+ViewModel.swift +++ b/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell+ViewModel.swift @@ -33,7 +33,6 @@ extension StatusTableViewCell { if statusView.frame == .zero { // set status view width statusView.frame.size.width = tableView.frame.width - containerViewHorizontalMargin - logger.log(level: .debug, "\((#file as NSString).lastPathComponent, privacy: .public)[\(#line, privacy: .public)], \(#function, privacy: .public): did layout for new cell") } switch viewModel.value { diff --git a/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell.swift b/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell.swift index 5cf498fdb..16285ebeb 100644 --- a/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell.swift +++ b/Mastodon/Scene/Share/View/TableviewCell/StatusTableViewCell.swift @@ -15,8 +15,6 @@ import MastodonUI final class StatusTableViewCell: UITableViewCell { static let marginForRegularHorizontalSizeClass: CGFloat = 64 - - let logger = Logger(subsystem: "StatusTableViewCell", category: "View") weak var delegate: StatusTableViewCellDelegate? var disposeBag = Set() @@ -44,11 +42,6 @@ final class StatusTableViewCell: UITableViewCell { super.init(coder: coder) _init() } - - deinit { - os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function) - } - } extension StatusTableViewCell {