Forráskód Böngészése

remove deprecated defaultCellHeight and defaultHeaderHeight constants

cyberta 5 éve
szülő
commit
901be5cf09

+ 0 - 1
deltachat-ios/Controller/ProfileInfoViewController.swift

@@ -46,7 +46,6 @@ class ProfileInfoViewController: UITableViewController {
     init(context: DcContext) {
         self.dcContext = context
         super.init(style: .grouped)
-        tableView.estimatedRowHeight = Constants.defaultCellHeight
     }
 
     required init?(coder: NSCoder) {

+ 0 - 7
deltachat-ios/Helper/Constants.swift

@@ -13,13 +13,6 @@ struct Constants {
 
     static let notificationIdentifier = "deltachat-ios-local-notifications"
 
-    static var defaultCellHeight: CGFloat {
-        return UIFont.preferredFont(forTextStyle: .body).pointSize + 32
-    }
-    static var defaultHeaderHeight: CGFloat {
-        return UIFont.preferredFont(forTextStyle: .caption1).pointSize + 12
-    }
-
 }
 
 struct Time {