diff --git a/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift b/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift index 3006be583bb4..be44c8e3cb97 100644 --- a/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift +++ b/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift @@ -44,20 +44,6 @@ final class SettingsDataSource: UITableViewDiffableDataSource CGFloat { - let sectionIdentifier = snapshot().sectionIdentifiers[section] - - return switch sectionIdentifier { - case .main: - interactor.deviceState.isLoggedIn ? 0 : UITableView.automaticDimension - case .daita, .version, .problemReport: - UITableView.automaticDimension - } - } - - func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { - let sectionIdentifier = snapshot().sectionIdentifiers[section] - guard let sectionFooterText = sectionIdentifier.sectionFooter else { return nil } - - guard let headerView = tableView - .dequeueReusableView(withIdentifier: HeaderFooterReuseIdentifier.primary) - else { return nil } - - var contentConfiguration = UIListContentConfiguration.mullvadGroupedFooter(tableStyle: .plain) - contentConfiguration.text = sectionFooterText - - headerView.contentConfiguration = contentConfiguration - - return headerView - } - - func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { - let sectionIdentifier = snapshot().sectionIdentifiers[section] - - return switch sectionIdentifier { - case .daita: - UITableView.automaticDimension - case .main, .version, .problemReport: - 0 - } - } - // MARK: - Private private func registerClasses() { @@ -211,13 +160,12 @@ final class SettingsDataSource: UITableViewDiffableDataSource