Cleanup unused code

This commit is contained in:
Mingshen Sun 2021-01-18 10:04:09 -08:00
parent 7ede6d11e3
commit 0ebfd69c47
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -19,8 +19,6 @@ class PasswordNavigationDataSource: NSObject, UITableViewDataSource {
var filteredSections: [Section]
var isSearchActive = false
var cellGestureRecognizer: UIGestureRecognizer?
let hideSectionHeaderThreshold = 6
init(entries: [PasswordTableEntry] = []) {
@ -44,10 +42,6 @@ class PasswordNavigationDataSource: NSObject, UITableViewDataSource {
let cell = tableView.dequeueReusableCell(withIdentifier: "passwordTableViewCell", for: indexPath) as! PasswordTableViewCell
let entry = getPasswordTableEntry(at: indexPath)
cell.configure(with: entry)
if let gestureRecognizer = cellGestureRecognizer, !entry.isDir {
cell.addGestureRecognizer(gestureRecognizer)
}
return cell
}